Closed swt2public closed 5 years ago
When creating a paper with year 'nineteen-fifty' Then validation should fail
Papers should not be valid without having all attributes (title, venue and year) set. Year should be a numeric value.
Validation reference
Expected #<paper id: nil, title: "computing machinery and intelligence", venue: "mind 49: 433-460", year: 0, created_at: nil, updated_at: nil> not to be valid
28/44 exercise tests have passed
Scenario
When creating a paper with year 'nineteen-fifty' Then validation should fail
Hints
Papers should not be valid without having all attributes (title, venue and year) set. Year should be a numeric value.
Validation reference
Error
28/44 exercise tests have passed