Commit 61f3e5fdd71bb844cc35d47257792b1d475ed398
1 parent
11a5fc50
Exists in
send_email_to_admins
and in
5 other branches
compare arrays correctly
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
test/api/enterprises_test.rb
... | ... | @@ -81,7 +81,7 @@ class EnterprisesTest < ActiveSupport::TestCase |
81 | 81 | |
82 | 82 | get "/api/v1/enterprises?#{params.to_query}" |
83 | 83 | json = JSON.parse(last_response.body) |
84 | - assert_equal [enterprise1.id, enterprise2.id], json['enterprises'].map {|c| c['id']} | |
84 | + assert_equivalent [enterprise1.id, enterprise2.id], json['enterprises'].map {|c| c['id']} | |
85 | 85 | end |
86 | 86 | |
87 | 87 | should 'logged user list private enterprises' do | ... | ... |