When a user visits the authors index page
Then the page should render
Hints
There should be an overview page (index action on AuthorsController) that lists all authors saved in the database.
You should have a separate file for feature tests for the author index page. Again, remember to have the test file end in _spec.rb.
The overview page should have a table listing the full names as well as homepages of authors, should link to individual author's detail pages and should contain a link to add new authors.
The have_link method might be helpful to test the existence of links:
expect(page).to have_link 'New', href: new_author_path
More implementation help can found in the relevant section of the Ruby on Rails guide.
Error
Got AbstractController::ActionNotFound: The action 'index' could not be found for AuthorsController
Scenario
When a user visits the authors index page Then the page should render
Hints
There should be an overview page (
index
action on AuthorsController) that lists all authors saved in the database. You should have a separate file for feature tests for the author index page. Again, remember to have the test file end in_spec.rb
.The overview page should have a table listing the full names as well as homepages of authors, should link to individual author's detail pages and should contain a link to add new authors. The
have_link
method might be helpful to test the existence of links:expect(page).to have_link 'New', href: new_author_path
More implementation help can found in the relevant section of the Ruby on Rails guide.
Error
Estimated progress: 23% complete