swt2-intro-exercise / rails-exercise-18-lassesteffen

rails-exercise-18-lassesteffen created by GitHub Classroom
MIT License
0 stars 0 forks source link

Paper should not validate without year #17

Closed swt2public closed 5 years ago

swt2public commented 5 years ago

Scenario

When creating a paper without year 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: "computing machinery and intelligence", venue: "mind 49: 433-460", year: nil, created_at: nil, updated_at: nil> not to be valid

Estimated progress: 73% complete

swt2public commented 5 years ago

Sorry, it's not working for me yet:

Scenario

When creating a paper without year Then validation should fail

Error

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

If you have problems solving this task, please don't hesitate to contact the teaching team!