swt2-intro-exercise / rails-exercise-18-NiklasKoehnecke

rails-exercise-18-NiklasKoehnecke created by GitHub Classroom
MIT License
0 stars 0 forks source link

Edit author page should save changes #9

Open swt2public opened 6 years ago

swt2public commented 6 years ago

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

Expected: "alan mathison" got: "alan"

(compared using ==)

Estimated progress: 50% complete