Skip to content

Commit

Permalink
Refs #18: Add validation test
Browse files Browse the repository at this point in the history
  • Loading branch information
Markus-Brand committed Nov 3, 2017
1 parent 8074cad commit c68c2d4
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions spec/models/paper_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,10 @@
paper = Paper.new(title: 'COMPUTING MACHINERY AND INTELLIGENCE', venue: '', year:1950)
expect(paper).not_to be_valid
end


it 'should not be able to create an paper without year' do
paper = Paper.new(title: 'COMPUTING MACHINERY AND INTELLIGENCE', venue: 'Mind 49: 433-460')
expect(paper).not_to be_valid
end
end

0 comments on commit c68c2d4

Please sign in to comment.