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