diff options
Diffstat (limited to 'test/unit/project_members_inheritance_test.rb')
-rw-r--r-- | test/unit/project_members_inheritance_test.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/unit/project_members_inheritance_test.rb b/test/unit/project_members_inheritance_test.rb index 43f52d832..74b798774 100644 --- a/test/unit/project_members_inheritance_test.rb +++ b/test/unit/project_members_inheritance_test.rb @@ -242,7 +242,7 @@ class ProjectMembersInheritanceTest < ActiveSupport::TestCase member = project.reload.memberships.detect {|m| m.principal == user} assert_not_nil member - assert_equal [1, 2, 3], member.roles.uniq.sort.map(&:id) + assert_equal [1, 2, 3], member.roles.map(&:id).uniq.sort end end @@ -258,7 +258,7 @@ class ProjectMembersInheritanceTest < ActiveSupport::TestCase member = project.reload.memberships.detect {|m| m.principal == user} assert_not_nil member - assert_equal [1, 2, 3], member.roles.uniq.sort.map(&:id) + assert_equal [1, 2, 3], member.roles.map(&:id).uniq.sort end end end |