Skip to content

Commit

Permalink
Refs #21: Add paper change test
Browse files Browse the repository at this point in the history
  • Loading branch information
Markus-Brand committed Nov 3, 2017
1 parent fbf8653 commit 3a6a8e2
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions spec/features/paper/edit_paper_spec.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
require 'rails_helper'

describe "Edit paper page", type: :feature do

it "should render without error" do
FactoryGirl.create :paper
visit edit_paper_path(id: "1")
end

it "should edit without error" do
@test = FactoryGirl.create :paper
visit edit_paper_path(@test)
fill_in "paper_title", :with => 'COMPUTING MACHINERY AND INTELLIGENCE'

find('input[type="submit"]').click
end

end

0 comments on commit 3a6a8e2

Please sign in to comment.