Skip to content

Commit

Permalink
Refs issue #10: Add test for linking to authors
Browse files Browse the repository at this point in the history
  • Loading branch information
Markus-Brand committed Nov 3, 2017
1 parent 7e5a835 commit daa7adb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions spec/features/author/index_author_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,11 @@
end

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

expect(page).to have_link('Add author')
expect(page).to have_link('Show')
end

end

0 comments on commit daa7adb

Please sign in to comment.