Hi,

I am trying to test factory girl associations basically I have a user
model and status model , what is supposed to happen is a user has many
statuses and a status belongs to a user.  I have tried to model this in
factory girl as you can see in the files. When I try to execute the test
I get
 Failure/Error: visit("/users/#{user.id}/statuses/#{status.id}")
     ActiveRecord::RecordNotFound:
       Couldn't find Status with id=2 [WHERE `statuses`.`user_id` = 1]
when I run the request spec for statuses. What should I change to get
this test to pass.

Shaban

Attachments:
http://www.ruby-forum.com/attachment/7873/status_spec.rb
http://www.ruby-forum.com/attachment/7874/factories.rb


-- 
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 https://groups.google.com/groups/opt_out.


Reply via email to