On Dec 7, 3:00 pm, Ori Kremer <[email protected]> wrote: > Thanks Fred. > You're right, when debugging the validate inclusion code, I see that the > PaymentType.all returns []. > > I guess, like you said, that when the Order class is loaded and the > inclusion is evaluated the PaymentType fixture wasn't loaded yet. > > But that brings up another question, isn't that a bug in rake/rails? > > Why aren't the fixtures being loaded prior to being used? Why isn't > PaymentType loaded before Order is? > I don't think any specific guarantees are made about when fixtures are loaded apart from the fact that by the time your test runs they are loaded or about the order in which any of this stuff happens.
Fred -- 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 this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

