mirror of
https://github.com/meineerde/redmine.git
synced 2025-12-19 23:11:12 +00: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:
parent
662d8935b0
commit
6f17c33403
@ -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 => {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user