Before_create firing twice on a save - RC2

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

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?

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?

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