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.
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. Usingfind
andclick
, you can submit the form.For more information, see the Capybara reference.
Error
Estimated progress: 17% complete