I’ve started playing with Rails 2.0.2 and I have an issue with fixtures.
It used to work in Rails 1.8.6…
A bit of context first. I have 2 models:
In my competition_test.rb, I have:
assert competitions(:competition_one).teams.include? teams(:team_one)
First I know that this is testing ActiveRecord more than anything else
but still this test used to pass in Rails 1.8.6 but fails with Rails
I printed out competitions(:competition_one).teams.last (if we imagine
that :team_one is indeed the last in the array) and teams(:team_one) and
I get something like:
=> #<Team id: 487, name: “Team One”, created_at: nil, updated_at: nil>
=> #<Team id: 607411122, name: “Team One”, created_at: “2008-01-14
21:26:05”, updated_at: “2008-01-14 21:26:05”>
Has anyone come with this issue and know what it’s all about?
Thanks for your help.