Forum: RSpec received unexpected message :id= with (20)

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
161cfa234780988a5269603abda9070c?d=identicon&s=25 Kleber Shimabuku (tenshi)
on 2012-05-24 00:27
Attachment: posts_controller_spec.rb (200 KB)
Attachment: posts_controller.rb (200 KB)
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 :(
This topic is locked and can not be replied to.