From 57d29faea1bda26a6613b3fc5c66a4445128f929 Mon Sep 17 00:00:00 2001 From: Abdelkader Boudih Date: Thu, 17 Apr 2014 22:16:14 +0000 Subject: [PATCH] postgresql in activerecord 4.2 behave differently --- spec/acts_as_taggable_on/taggable_spec.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/spec/acts_as_taggable_on/taggable_spec.rb b/spec/acts_as_taggable_on/taggable_spec.rb index 1a5511436..b411e4f04 100644 --- a/spec/acts_as_taggable_on/taggable_spec.rb +++ b/spec/acts_as_taggable_on/taggable_spec.rb @@ -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