Fix test failures
This commit is contained in:
parent
44629832dd
commit
e91956d0f7
58 changed files with 231 additions and 363 deletions
|
@ -42,7 +42,7 @@ class UserRolesControllerTest < ActionController::TestCase
|
|||
end
|
||||
assert_response :not_found
|
||||
assert_template "user/no_such_user"
|
||||
assert_select "h2", "The user non_existent_user does not exist"
|
||||
assert_select "h1", "The user non_existent_user does not exist"
|
||||
|
||||
# Granting a role from a user that already has it should fail
|
||||
assert_no_difference "UserRole.count" do
|
||||
|
@ -100,7 +100,7 @@ class UserRolesControllerTest < ActionController::TestCase
|
|||
end
|
||||
assert_response :not_found
|
||||
assert_template "user/no_such_user"
|
||||
assert_select "h2", "The user non_existent_user does not exist"
|
||||
assert_select "h1", "The user non_existent_user does not exist"
|
||||
|
||||
# Removing a role from a user that doesn't have it should fail
|
||||
assert_no_difference "UserRole.count" do
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue