hpi-swt2-exercise / rails-exercise-17-swteam

rails-exercise-17-swteam created by GitHub Classroom
MIT License
0 stars 1 forks source link

New author page should save the author #12

Closed swt2public closed 6 years ago

swt2public commented 6 years ago

Scenario

When a user visits the new author page And fills in 'Alan', 'Turing', and 'http://wikipedia.org/Alan_Turing', respectively And submits the form Then Alan Turing should be found in the database

Hints

To test this feature, you need to simulate a user filling in data in the form. In the test, after visiting the new-author page, you can use fill_in to enter data. Using find and click, you can submit the form.

visit new_author_path
fill_in "author_first_name", :with => ...
find('input[type="submit"]').click

For more information, see the Capybara reference.

Error

Got ActiveRecord::RecordNotFound: Couldn't find Author

Estimated progress: 17% complete