diff options
Diffstat (limited to 'test/controllers')
-rw-r--r-- | test/controllers/resource_types_controller_test.rb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/test/controllers/resource_types_controller_test.rb b/test/controllers/resource_types_controller_test.rb index c5621ab..a5ba2a3 100644 --- a/test/controllers/resource_types_controller_test.rb +++ b/test/controllers/resource_types_controller_test.rb @@ -3,6 +3,9 @@ require "test_helper" class ResourceTypesControllerTest < ActionDispatch::IntegrationTest setup do @resource_type = resource_types(:one) + @user = users(:one) + post session_url, params: { session: { email_address: @user.email_address, password_digest: "password" } } + follow_redirect! # After login end test "should get index" do @@ -25,7 +28,7 @@ class ResourceTypesControllerTest < ActionDispatch::IntegrationTest test "should show resource_type" do get resource_type_url(@resource_type) - assert_response :success + assert_response :redirect end test "should get edit" do |