Sha256: dcbb53409cfc07f3bd8641b672b2bbcfb9a1d5916404a251c950f72d30ec88e3
Contents?: true
Size: 417 Bytes
Versions: 2
Compression:
Stored size: 417 Bytes
Contents
require 'spec_helper' describe 'Adding and removing tags' do let(:article) { Article.create } let(:pancakes) { TagRamaprasad::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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
tag_ramaprasad-1.0.2 | spec/acceptance/tags_spec.rb |
tag_ramaprasad-1.0.1 | spec/acceptance/tags_spec.rb |