From da69dec36f9ee1f09cf19fbaae4c138051847357 Mon Sep 17 00:00:00 2001 From: Matthew Lemon Date: Fri, 13 Dec 2024 13:46:45 +0000 Subject: wip: fixing tests --- test/controllers/resource_types_controller_test.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'test/controllers') 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 -- cgit v1.2.3