Skip to content

Commit

Permalink
postgresql in activerecord 4.2 behave differently
Browse files Browse the repository at this point in the history
  • Loading branch information
seuros committed Apr 17, 2014
1 parent a6054b9 commit 57d29fa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion spec/acts_as_taggable_on/taggable_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -465,7 +465,8 @@
frank = TaggableModel.create(name: 'Frank', tag_list: 'happier')
steve = TaggableModel.create(name: 'Steve', tag_list: 'happier')

expect(TaggableModel.tagged_with('lazy', exclude: true).to_a).to eq([frank, steve])
expect(TaggableModel.tagged_with('lazy', exclude: true)).to include([frank, steve])
expect(TaggableModel.tagged_with('lazy', exclude: true).size).to eq(2)
end

it 'should return an empty scope for empty tags' do
Expand Down

0 comments on commit 57d29fa

Please sign in to comment.