Skip to content

Commit

Permalink
failed test for #25
Browse files Browse the repository at this point in the history
  • Loading branch information
akuchinke committed Nov 9, 2017
1 parent a8a9af4 commit 2882a4b
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions spec/features/paper/new_paper_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,17 @@
expect(page).to have_content(paper.year)
end

it "should save the paper to db" do
visit new_paper_path
paper = build :paper

fill_in 'Venue', with: paper.venue
fill_in 'Year', with: paper.year
click_button 'Save Paper'
expect(page).to have_content('Title can\'t be blank')

end



end

0 comments on commit 2882a4b

Please sign in to comment.