Sha256: 4f14398b2d632ebfd5d8731c7c60d4ef41e7e4c8b0ae459db531086b0d1cf209
Contents?: true
Size: 566 Bytes
Versions: 1
Compression:
Stored size: 566 Bytes
Contents
require File.expand_path(File.dirname(__FILE__) + '/../spec_helper') describe Tag do it { should have_many(:taggings).dependent(:destroy) } it { should have_many(:taggings, :dependent => :destroy) } it { should have_many(:posts) } it { should ensure_length_at_least(:name, 2) } it { should protect_attributes(:secret) } it { should_not protect_attributes(:name) } end describe Tag do should_have_many :taggings, :dependent => :destroy should_have_many :posts should_ensure_length_at_least :name, 2 should_protect_attributes :secret end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
carlosbrando-remarkable-2.2.1 | spec/models/tag_spec.rb |