So I have message model and each user has many messages. When I run user.messages in the console it returns correctly, however in the test it returns and empty collection? Any thoughts. All the sql is being generate correctly, I checked the log. Here's a pastie with the code in question. http://pastie.caboo.se/84337
on 2007-08-02 18:35
on 2007-08-02 18:43
Hi, please post the exact statement that you're typing in the console. -Conrad
on 2007-08-02 19:06
u = User.find :first then u.messages.size the output is three
on 2007-08-03 06:17
tests are run against the test database, so it will be empty unless you create some messages for your user in fixtures or otherwise.