From daa7adb032544df359a981841650d80b4c957464 Mon Sep 17 00:00:00 2001 From: Markus Brand Date: Fri, 3 Nov 2017 17:00:33 +0100 Subject: [PATCH] Refs issue #10: Add test for linking to authors --- spec/features/author/index_author_spec.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/spec/features/author/index_author_spec.rb b/spec/features/author/index_author_spec.rb index c9d663a..26aeaab 100644 --- a/spec/features/author/index_author_spec.rb +++ b/spec/features/author/index_author_spec.rb @@ -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