I have a unit test which fails using Rails 1.2RC2, because a method marked by the before_create filter is firing twice when my ActiveRecord is saved. Is a before_create filter supposed to cause multiple invocations? We have assumed it is called once, and only once, when the object is created, in our code (but we unit tested it to make certain). This is one of three issues I have with my unit tests on RC2. I'll post separately for the other two, when I've done more research on those. Regards, Lori
on 2007-01-08 19:47
on 2007-01-15 20:13
So, doesn't anyone have anything to say about the semantics of before_create? Is it, or is not, valid for the before_create filter to fire twice?
on 2007-01-16 02:26
Lori, can you give more details? For example, what is the test that is failing, and its context? Can you also include what you think are the relevant lines from the controller? Can you include the part of the test.log that is relevant?