Sha256: f0c14c7f072fed0eaf007ade674a225e11968e7d2ba9e6015c6c345ef63a5ec1
Contents?: true
Size: 634 Bytes
Versions: 8
Compression:
Stored size: 634 Bytes
Contents
describe "valid model", :shared => true do before do @model.valid? end it "is valid" do @model.should be_valid end it "has no error messages" do @model.errors.should be_empty end it "has empty list of full error messages" do @model.errors.full_messages.should be_empty end end describe "invalid model", :shared => true do before do @model.valid? end it "is NOT valid" do @model.should_not be_valid end it "has error messages" do @model.errors.should_not be_blank end it "has list of full error messages" do @model.errors.full_messages.should_not be_blank end end
Version data entries
8 entries across 8 versions & 1 rubygems