Changing ids for fixtures in 2.0

Well, I am not sure if I am doing something wrong, or if this behavior
is intended… but somehow my tests are failing for rails 2.0

Ok, here is my setup. First have a look at my fixtures (events habtm
users (as hosts))

login: administrator
login: billie_the_kid

title: My little test event
hosts: billie

This works great so far and when using UI no problems so far. But when
using the hash to access a host id like:


the returned array is different for every test I run. This way all tests
fail. Any ideas why this is the case?


Well, it was my fault :wink:
I had ids in my join_table. This way the events(:my_event).host_ids call
returned these ids instead of the user ids.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs