Skip to content

Commit

Permalink
Refs #9: add author link
Browse files Browse the repository at this point in the history
  • Loading branch information
ErikBrendel committed Nov 3, 2017
1 parent ce3d766 commit f320d2c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions app/views/authors/index.html.erb
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<h1>all the authors are listed here!</h1>

<%= link_to 'Add Author', new_author_path %>

<table>
<tr>
<th>Name</th>
Expand Down
2 changes: 1 addition & 1 deletion spec/features/author/index_author_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit f320d2c

Please sign in to comment.