diff --git a/.idea/workspace.xml b/.idea/workspace.xml index 917e0da..b5339c3 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -1,11 +1,7 @@ - - - - - + @@ -46,7 +42,7 @@ - + @@ -423,7 +419,7 @@ - @@ -675,7 +671,7 @@ - + diff --git a/spec/features/author/index_author_spec.rb b/spec/features/author/index_author_spec.rb index 8fd25ca..2487291 100644 --- a/spec/features/author/index_author_spec.rb +++ b/spec/features/author/index_author_spec.rb @@ -21,4 +21,18 @@ expect(page).to have_link('Show') end + it "should have a link to show author" do + FactoryGirl.create :author + visit authors_path + + expect(page).to have_link('Show') + end + + it "should have a link to edit author" do + FactoryGirl.create :author + visit authors_path + + expect(page).to have_link('edit') + end + end