Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add failing test

  • Loading branch information...
commit bcbfd44883d30ef0a7b7e8ab4fed63716f5635b6 1 parent 35852b6
@unindented unindented authored
Showing with 5 additions and 1 deletion.
  1. +5 −1 spec/acts_as_taggable_on/tagger_spec.rb
View
6 spec/acts_as_taggable_on/tagger_spec.rb
@@ -120,9 +120,13 @@
it "should return tags for the inheriting tagger" do
@user3.tag(@taggable, :with => 'ruby, scheme', :on => :tags)
-
@taggable.tags_from(@user3).sort.should == %w(ruby scheme).sort
end
+
+ it "should scope objects returned by tagged_with by owners" do
+ @user3.tag(@taggable, :with => 'ruby, scheme', :on => :tags)
+ TaggableModel.tagged_with(%w(ruby scheme), :owned_by => @user3).count.should == 1
+ end
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.