Skip to content

Commit

Permalink
Fix test to allow array elements in any order
Browse files Browse the repository at this point in the history
was failing intermittently; backports
samvera/hyrax@82138ee
  • Loading branch information
hackartisan authored and mjgiarlo committed Sep 7, 2017
1 parent 2880789 commit 16417ef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/services/sufia/statistics/depositors/summary_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@
let(:start_date) { 1.day.ago.beginning_of_day }
let(:end_date) { 0.days.ago.end_of_day }
it "gathers user deposits during a date range" do
expect(subject).to eq [{ key: user1.user_key, deposits: 1, user: user1 },
{ key: user2.user_key, deposits: 1, user: user2 }]
expect(subject).to match_array [{ key: user1.user_key, deposits: 1, user: user1 },
{ key: user2.user_key, deposits: 1, user: user2 }]
end
end
end
Expand Down

0 comments on commit 16417ef

Please sign in to comment.