]> source.dussan.org Git - redmine.git/commitdiff
use 'lambda' instead of '->{}' at RolesControllerTest
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Thu, 17 Dec 2020 13:10:06 +0000 (13:10 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Thu, 17 Dec 2020 13:10:06 +0000 (13:10 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@20656 e93f8b46-1217-0410-a6f0-8f06a7374b81

test/functional/roles_controller_test.rb

index b320bfa699e7d101e32ee88567e157275ec2833a..1f2b2c36b27131c29fe93966a37f3c9da6c44e34 100644 (file)
@@ -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 => {