Skip to content

Commit

Permalink
Refs #22: red test
Browse files Browse the repository at this point in the history
  • Loading branch information
ErikBrendel committed Nov 3, 2017
1 parent d80d2b5 commit d194427
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions spec/models/paper_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,9 @@
expect(paper).not_to be_valid
end

it 'should not be valid with non-int year' do
paper = Paper.new(id: 42, title: 'COMPUTING MACHINERY AND INTELLIGENCE', venue: 'Mind 49: 433-460', year:'nineteen-fifty')
expect(paper).not_to be_valid
end

end

0 comments on commit d194427

Please sign in to comment.