# Granting should still fail
post :grant, :display_name => users(:normal_user).display_name, :role => "moderator"
# Granting should still fail
post :grant, :display_name => users(:normal_user).display_name, :role => "moderator"
# Granting a role from a user that already has it should fail
assert_no_difference "UserRole.count" do
# Granting a role from a user that already has it should fail
assert_no_difference "UserRole.count" do
# Revoking should still fail
post :revoke, :display_name => users(:normal_user).display_name, :role => "moderator"
# Revoking should still fail
post :revoke, :display_name => users(:normal_user).display_name, :role => "moderator"
# Removing a role from a user that doesn't have it should fail
assert_no_difference "UserRole.count" do
# Removing a role from a user that doesn't have it should fail
assert_no_difference "UserRole.count" do