diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2020-12-17 13:10:06 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2020-12-17 13:10:06 +0000 |
commit | 6f17c3340351a3dfd92017ae9cde829f37e7e475 (patch) | |
tree | d86945975fb3e7e825c06692aacdf5ef164a4ddb /test/functional | |
parent | 662d8935b0a4c16ce55957663cd48068466b43a6 (diff) | |
download | redmine-6f17c3340351a3dfd92017ae9cde829f37e7e475.tar.gz redmine-6f17c3340351a3dfd92017ae9cde829f37e7e475.zip |
use 'lambda' instead of '->{}' at RolesControllerTest
git-svn-id: http://svn.redmine.org/redmine/trunk@20656 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/functional')
-rw-r--r-- | test/functional/roles_controller_test.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/functional/roles_controller_test.rb b/test/functional/roles_controller_test.rb index b320bfa69..1f2b2c36b 100644 --- a/test/functional/roles_controller_test.rb +++ b/test/functional/roles_controller_test.rb @@ -287,8 +287,8 @@ class RolesControllerTest < Redmine::ControllerTest end def test_update_permissions_should_not_update_other_roles - assert_no_changes -> {Role.find(2).permissions} do - assert_changes -> {Role.find(1).permissions} do + assert_no_changes lambda {Role.find(2).permissions} do + assert_changes lambda {Role.find(1).permissions} do post( :update_permissions, :params => { |