From 6f17c3340351a3dfd92017ae9cde829f37e7e475 Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Thu, 17 Dec 2020 13:10:06 +0000 Subject: [PATCH] use 'lambda' instead of '->{}' at RolesControllerTest git-svn-id: http://svn.redmine.org/redmine/trunk@20656 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- test/functional/roles_controller_test.rb | 4 ++-- 1 file 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 => { -- 2.39.5