swt2-intro-exercise / rails-exercise-18-Kenneth-Schroeder

rails-exercise-18-Kenneth-Schroeder created by GitHub Classroom
MIT License
1 stars 0 forks source link

Paper should not validate without title #15

Open swt2public opened 5 years ago

swt2public commented 5 years ago

Scenario

When creating a paper without title 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

Expected #<paper id: nil, title: nil, venue: "mind 49: 433-460", year: 1950, created_at: nil, updated_at: nil> not to be valid

Estimated progress: 67% complete