Skip to content
Browse files

add wild option to tagged_with

  • Loading branch information...
1 parent 8a4b359 commit eda92025c8e062d155619b2b2124f9433b841d27 @artemk artemk committed Dec 18, 2011
Showing with 1 addition and 2 deletions.
  1. +1 −2 spec/acts_as_taggable_on/taggable_spec.rb
View
3 spec/acts_as_taggable_on/taggable_spec.rb
@@ -224,10 +224,9 @@
frank = TaggableModel.create(:name => "Frank", :tag_list => "bobby, jim")
steve = TaggableModel.create(:name => "Steve", :tag_list => "john, patricia")
jim = TaggableModel.create(:name => "Jim", :tag_list => "jim, steve")
- tricia = TaggableModel.create(:name => "Tricia", :tag_list => "bobby, patricia")
- TaggableModel.tagged_with(["bob", "tricia"], :wild => true, :any => true).to_a.should == [bob, frank, steve, tricia]
+ TaggableModel.tagged_with(["bob", "tricia"], :wild => true, :any => true).to_a.should == [bob, frank, steve]
TaggableModel.tagged_with(["bob", "tricia"], :wild => true, :exclude => true).to_a.should == [jim]
end
end

0 comments on commit eda9202

Please sign in to comment.
Something went wrong with that request. Please try again.