semantically-taggable 0.4.1 → 0.4.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -24,6 +24,7 @@ describe "Tagging articles" do
24
24
  @article.save
25
25
 
26
26
  Contact.create(:contact_point => 'Lionel Messi', :keyword_list => ['awesome', 'player'])
27
+ Contact.create(:contact_point => 'Owen Hargreaves', :keyword_list => 'player')
27
28
  ActiveRecord::Base.logger = Logger.new(STDOUT)
28
29
  end
29
30
 
@@ -35,6 +36,10 @@ describe "Tagging articles" do
35
36
  @article.tag_counts_on(:keywords).length.should == 2
36
37
  end
37
38
 
39
+ it "should be able to get Tag#model_counts" do
40
+ awesome_keyword.model_counts.should == {'Article' => 1, 'Contact' =>1}
41
+ end
42
+
38
43
  it "should be able to get Scheme#model_counts_for" do
39
44
  keywords_scheme.model_counts_for('awesome', 'epic')\
40
45
  .should == { 'awesome' => 2, 'epic' => 1 }
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: semantically-taggable
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.4.1
5
+ version: 0.4.2
6
6
  platform: ruby
7
7
  authors:
8
8
  - Russell Garner
@@ -173,7 +173,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
173
173
  requirements:
174
174
  - - ">="
175
175
  - !ruby/object:Gem::Version
176
- hash: 2889794840262054589
176
+ hash: -2163804864254976363
177
177
  segments:
178
178
  - 0
179
179
  version: "0"