From: Toshi MARUYAMA Date: Thu, 17 Dec 2020 13:10:06 +0000 (+0000) Subject: use 'lambda' instead of '->{}' at RolesControllerTest X-Git-Tag: 4.2.0~163 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=6f17c3340351a3dfd92017ae9cde829f37e7e475;p=redmine.git use 'lambda' instead of '->{}' at RolesControllerTest git-svn-id: http://svn.redmine.org/redmine/trunk@20656 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- 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 => {