mirror of
https://github.com/redmine/redmine.git
synced 2025-11-14 09:16:02 +01:00
use 'lambda' instead of '->{}' at RolesControllerTest
git-svn-id: http://svn.redmine.org/redmine/trunk@20656 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -287,8 +287,8 @@ class RolesControllerTest < Redmine::ControllerTest
|
|||||||
end
|
end
|
||||||
|
|
||||||
def test_update_permissions_should_not_update_other_roles
|
def test_update_permissions_should_not_update_other_roles
|
||||||
assert_no_changes -> {Role.find(2).permissions} do
|
assert_no_changes lambda {Role.find(2).permissions} do
|
||||||
assert_changes -> {Role.find(1).permissions} do
|
assert_changes lambda {Role.find(1).permissions} do
|
||||||
post(
|
post(
|
||||||
:update_permissions,
|
:update_permissions,
|
||||||
:params => {
|
:params => {
|
||||||
|
|||||||
Reference in New Issue
Block a user