Change @qr.update_attributes to @qr.update_attributes!, and I'll bet you see that @qr failed validations and never saved. I make it a habit to always use update_attributes! in tests, so that a failure raises an exception.
- D -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

