Please sign in to comment.
Specify blog post accessors
Once again, rather than fixing the acceptance error directly, we drop down to the model test level to reproduce the error. We specify that we want a `title` field--as well as a `body` field, since we know we'll need that and it feels safe to go ahead and add it. The behavior we want is that we want those fields to be `nil` for a new model instance. Inner red: undefined method `title' for #<BlogPost id: nil> With this specification, we've reproduced the error from the acceptance test.
- Loading branch information...