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 5162335 commit 45361a0
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 40 deletions.
15 changes: 0 additions & 15 deletions spec/helpers/authors_helper_spec.rb

This file was deleted.

15 changes: 0 additions & 15 deletions spec/helpers/papers_helper_spec.rb

This file was deleted.

5 changes: 5 additions & 0 deletions spec/models/paper_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,9 @@
expect(paper.year).to eq(1950)
end


it 'should not be able to create an paper without title' do
paper = Paper.new(title: '', venue: 'Mind 49: 433-460', year:1950)
expect(paper).not_to be_valid
end
end
5 changes: 0 additions & 5 deletions spec/views/authors/new.html.erb_spec.rb

This file was deleted.

5 changes: 0 additions & 5 deletions spec/views/papers/new.html.erb_spec.rb

This file was deleted.

0 comments on commit 45361a0

Please sign in to comment.