Sha256: 4f98c5cabb45616b5e48d9aa2bdda35c34b9a674036a13e1b0af429c8f6bcfd1

Contents?: true

Size: 581 Bytes

Versions: 46

Compression:

Stored size: 581 Bytes

Contents

require File.dirname(__FILE__) + '/../spec_helper'

describe "Tagger" do
  before(:each) do
    [TaggableModel, Tag, Tagging, TaggableUser].each(&:delete_all)
    @user = TaggableUser.new
    @taggable = TaggableModel.new(:name => "Bob Jones")
  end
  
  it "should have taggings" do
    @user.tag(@taggable, :with=>'ruby,scheme', :on=>:tags)
    @user.owned_taggings.size == 2
  end
  
  it "should have tags" do
    @user.tag(@taggable, :with=>'ruby,scheme', :on=>:tags)
    @user.owned_tags.size == 2
  end
  
  it "is tagger" do
    @user.is_tagger?.should(be_true)
  end  
end

Version data entries

46 entries across 46 versions & 15 rubygems

Version Path
johnsbrn-acts-as-taggable-on-1.0.5 spec/acts_as_taggable_on/tagger_spec.rb
johnsbrn-acts-as-taggable-on-1.1.0 spec/acts_as_taggable_on/tagger_spec.rb
lawrencepit-acts-as-taggable-on-1.0.1 spec/acts_as_taggable_on/tagger_spec.rb
mbleigh-acts-as-taggable-on-1.0.1 spec/acts_as_taggable_on/tagger_spec.rb
mbleigh-acts-as-taggable-on-1.0.2 spec/acts_as_taggable_on/tagger_spec.rb
mbleigh-acts-as-taggable-on-1.0.3 spec/acts_as_taggable_on/tagger_spec.rb
mbleigh-acts-as-taggable-on-1.0.5 spec/acts_as_taggable_on/tagger_spec.rb
ozataman-acts-as-taggable-on-1.0.3 spec/acts_as_taggable_on/tagger_spec.rb
slillibri-acts-as-taggable-on-1.0.5 spec/acts_as_taggable_on/tagger_spec.rb
slitz-acts-as-taggable-on-1.0.2.1 spec/acts_as_taggable_on/tagger_spec.rb
slitz-acts-as-taggable-on-1.0.2.2 spec/acts_as_taggable_on/tagger_spec.rb
slitz-acts-as-taggable-on-1.0.2.3 spec/acts_as_taggable_on/tagger_spec.rb
wideopenspaces-acts-as-taggable-on-1.0.3 spec/acts_as_taggable_on/tagger_spec.rb
yury-acts-as-taggable-on-1.0.2 spec/acts_as_taggable_on/tagger_spec.rb
yury-acts-as-taggable-on-1.0.3 spec/acts_as_taggable_on/tagger_spec.rb
yury-acts-as-taggable-on-1.0.4 spec/acts_as_taggable_on/tagger_spec.rb
yury-acts-as-taggable-on-1.0.5 spec/acts_as_taggable_on/tagger_spec.rb
yury-acts-as-taggable-on-1.0.6 spec/acts_as_taggable_on/tagger_spec.rb
wideopenspaces-acts-as-taggable-on-1.0.4 spec/acts_as_taggable_on/tagger_spec.rb
acts-as-taggable-on-1.0.19 spec/acts_as_taggable_on/tagger_spec.rb