From 61f3e5fdd71bb844cc35d47257792b1d475ed398 Mon Sep 17 00:00:00 2001 From: Leandro Nunes dos Santos Date: Tue, 19 Apr 2016 11:52:07 -0300 Subject: [PATCH] compare arrays correctly --- test/api/enterprises_test.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/api/enterprises_test.rb b/test/api/enterprises_test.rb index cd852b1..fe261e9 100644 --- a/test/api/enterprises_test.rb +++ b/test/api/enterprises_test.rb @@ -81,7 +81,7 @@ class EnterprisesTest < ActiveSupport::TestCase get "/api/v1/enterprises?#{params.to_query}" json = JSON.parse(last_response.body) - assert_equal [enterprise1.id, enterprise2.id], json['enterprises'].map {|c| c['id']} + assert_equivalent [enterprise1.id, enterprise2.id], json['enterprises'].map {|c| c['id']} end should 'logged user list private enterprises' do -- libgit2 0.21.2