Skip to content

Commit

Permalink
Refs issue #15: Add test for destroy link
Browse files Browse the repository at this point in the history
  • Loading branch information
Markus-Brand committed Nov 3, 2017
1 parent cebf9e4 commit 0106861
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions spec/features/author/index_author_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,11 @@
expect(page).to have_link('Edit')
end

it "should have a link to destroy author" do
FactoryGirl.create :author
visit authors_path

expect(page).to have_link('Destroy')
end

end

0 comments on commit 0106861

Please sign in to comment.