Before_Save Filters Acting Goofy in Unit Test

I have a fixture-less unit test that is not acting as expected.

My user model has 4 before_save filters to create some associations,
to deal with the format of the data that comes in.

In my test I am creating 5 users - my before_save filters run on the
first User, but not on any other. I’ve moved the order around, tried
using puts in several places to follow the progress, but I can’t
figure out what’s happening.

The Before_Save filters and the Unit test are pastied at
http://pastie.caboo.se/private/qp58cvjkcl3efvij3i

Any suggestions or insights would be appreciated. Thanks a lot.

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