Index page no longer redirects when there's no issues.
This commit is contained in:
parent
a09e3f3fe0
commit
8e859b0f1d
1 changed files with 2 additions and 6 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue