From 8e859b0f1d69c46eba4ebd3a676bbd2b8300b8ad Mon Sep 17 00:00:00 2001 From: Andy Allan Date: Wed, 29 Nov 2017 17:37:29 +0000 Subject: [PATCH] Index page no longer redirects when there's no issues. --- test/controllers/issues_controller_test.rb | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/test/controllers/issues_controller_test.rb b/test/controllers/issues_controller_test.rb index c57ee53a3..3a38ea812 100644 --- a/test/controllers/issues_controller_test.rb +++ b/test/controllers/issues_controller_test.rb @@ -21,16 +21,12 @@ class IssuesControllerTest < ActionController::TestCase # Access issues_path by admin session[:user] = create(:administrator_user).id get :index - # this is redirected because there are no issues?! - assert_response :redirect - assert_redirected_to issues_path + assert_response :success # Access issues_path by moderator session[:user] = create(:moderator_user).id get :index - # this is redirected because there are no issues?! - assert_response :redirect - assert_redirected_to issues_path + assert_response :success end def test_new_issue_without_login -- 2.43.2