Sha256: 879f2521f56035ebbc632ed7057195c0b48091decd8d76affd05ed150ab415b3
Contents?: true
Size: 560 Bytes
Versions: 3
Compression:
Stored size: 560 Bytes
Contents
describe "valid model", :shared => true do 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 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
3 entries across 3 versions & 1 rubygems