Sha256: 9ae02dfb254d092fdadb371a271f31cd3a198445ed7f22048a5e684605bbaec2
Contents?: true
Size: 410 Bytes
Versions: 1
Compression:
Stored size: 410 Bytes
Contents
require 'spec_helper' describe 'Adding and removing tags' do let(:article) { Article.create } let(:pancakes) { TagBat::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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
tag_bat-0.0.2 | spec/acceptance/tags_spec.rb |