From f320d2c0d2d8ccc7918cc421a7fc11e0d295cc3f Mon Sep 17 00:00:00 2001 From: Erik Brendel Date: Fri, 3 Nov 2017 17:22:04 +0100 Subject: [PATCH] Refs #9: add author link --- app/views/authors/index.html.erb | 2 ++ spec/features/author/index_author_spec.rb | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/app/views/authors/index.html.erb b/app/views/authors/index.html.erb index 98bf2fa..a8352e0 100644 --- a/app/views/authors/index.html.erb +++ b/app/views/authors/index.html.erb @@ -1,5 +1,7 @@

all the authors are listed here!

+<%= link_to 'Add Author', new_author_path %> + diff --git a/spec/features/author/index_author_spec.rb b/spec/features/author/index_author_spec.rb index 178b85f..74efec8 100644 --- a/spec/features/author/index_author_spec.rb +++ b/spec/features/author/index_author_spec.rb @@ -17,7 +17,7 @@ it "should display a link to create new authors" do visit authors_path - expect(page).to have_link('add author') + expect(page).to have_link('Add Author') end end \ No newline at end of file
Name