Closed swt2public closed 5 years ago
Sorry, it's not working for me yet:
Given an author named 'Alan Turing' When a user visits the author's edit page And changes first name to 'Alan Mathison' Then no error should occour
Got Capybara::ElementNotFound: Unable to find field "author[first_name]"
If you have problems solving this task, please don't hesitate to contact the teaching team!
Scenario
Given an author named 'Alan Turing' When a user visits the author's edit page And changes first name to 'Alan Mathison' Then no error should occour
Hints
Changes made to the data in the edit form should be written to the database.
In a test, if an object's values should be reloaded from the database, after an action has modified them, the
reload
method is useful:@author.reload
The corresponding part of the Ruby on Rails guide is here
Error
Estimated progress: 50% complete