Sha256: f6e08845dedf32ffc1488c41813fccde8dcc43a356ea726e5a4122e49219dc66
Contents?: true
Size: 410 Bytes
Versions: 3
Compression:
Stored size: 410 Bytes
Contents
require 'spec_helper' describe 'Adding and removing tags' do let(:article) { Article.create } let(:pancakes) { MyTags::Tag.create :name => 'pancakes' } it "stores new tags" do article.tags << pancakes article.tags.reload.should == [pancakes] end it "removes existing tags" do article.tags << pancakes article.tags.delete pancakes article.tags.reload.should == [] end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
my_tags-1.0.0 | spec/acceptance/tags_spec.rb |
my_tags-0.0.9 | spec/acceptance/tags_spec.rb |
my_tags-0.0.8 | spec/acceptance/tags_spec.rb |