Given an author named 'Alan Turing'
When a user visits the author's edit page
And changes first name to 'Alan Mathison'
And clicks submit
Then Turing's first name should be updated
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
Scenario
Given an author named 'Alan Turing' When a user visits the author's edit page And changes first name to 'Alan Mathison' And clicks submit Then Turing's first name should be updated
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
(compared using ==)
Estimated progress: 50% complete