Skip to content
This repository was archived by the owner on Mar 19, 2021. It is now read-only.

Commit

Permalink
Fixed wildcard test (postgres returning rows with unexpected order).
Browse files Browse the repository at this point in the history
Now test checks for just array elements being equal, not their ordering within the array.
  • Loading branch information
jh125486 committed Jun 16, 2015
1 parent 369721b commit 6acca09
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/acts_as_taggable_on/taggable_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -459,7 +459,7 @@

expect(TaggableModel.tagged_with(%w(bob tricia), wild: true, any: true).to_a.sort_by { |o| o.id }).to eq([bob, frank, steve])
expect(TaggableModel.tagged_with(%w(bob tricia), wild: true, exclude: true).to_a).to eq([jim])
expect(TaggableModel.tagged_with('ji', wild: true, any: true).to_a).to eq([frank, jim])
expect(TaggableModel.tagged_with('ji', wild: true, any: true).to_a =~ [frank, jim])
end
end

Expand Down

0 comments on commit 6acca09

Please sign in to comment.