Commit 88ba5f6e643fad9bb0da232bea66b20c47bd7d1c

Authored by Leandro Nunes dos Santos
Committed by Rodrigo Souto
1 parent c719f4bd

ProfileTest: compare array correctly

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
test/unit/profile_test.rb
@@ -1761,7 +1761,7 @@ class ProfileTest < ActiveSupport::TestCase @@ -1761,7 +1761,7 @@ class ProfileTest < ActiveSupport::TestCase
1761 env = fast_create(Environment) 1761 env = fast_create(Environment)
1762 roles = %w(foo bar profile_foo profile_bar).map{ |r| Role.create!(:name => r, :environment_id => env.id, :permissions => ["some"]) } 1762 roles = %w(foo bar profile_foo profile_bar).map{ |r| Role.create!(:name => r, :environment_id => env.id, :permissions => ["some"]) }
1763 Role.create! :name => 'test', :environment_id => env.id + 1 1763 Role.create! :name => 'test', :environment_id => env.id + 1
1764 - assert_equal roles, Profile::Roles.all_roles(env.id) 1764 + assert_equivalent roles, Profile::Roles.all_roles(env.id)
1765 end 1765 end
1766 1766
1767 should 'define method for role' do 1767 should 'define method for role' do