swt2-intro-exercise / rails-exercise-20-felixauringer

rails-exercise-20-felixauringer created by GitHub Classroom
MIT License
0 stars 0 forks source link

Paper should not validate without venue #12

Closed swt2public closed 3 years ago

swt2public commented 3 years ago

Scenario

When creating a paper without venue 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: nil, year: 1950, created_at: nil, updated_at: nil> not to be valid

25/44 exercise tests have passed

felixauringer commented 3 years ago

fixed in 55a850a89a3290d15765ee14a384ea7b2f386a98