[rspec-users] received unexpected message :id= with (20)

Kleber Shimabuku lists at ruby-forum.com
Wed May 23 22:27:45 UTC 2012

Please help me to understand this error message:

 1) PostsController#create when logged in should create a new post and
redirect to a successful message page
     Failure/Error: post 'create', { post: {title: 'New post',
       Mock Post(id: integer, title: string, description: text,
location: string, created_at: datetime, updated_at: datetime, status:
string, tags: string, views: integer, user_id: integer) received
unexpected message :id= with (20)
     # ./spec/controllers/posts_controller_spec.rb:56:in `block (4
levels) in <top (required)>'

Finished in 0.59991 seconds
6 examples, 1 failure

I'm trying to figure out this for about a week or more :(


Posted via http://www.ruby-forum.com/.

More information about the rspec-users mailing list