Testing anomaly

what do you mean by fails to execute ? Doesn't run at all, throws some weird error, something else?. The model is only going to be loaded once, so if you had a test which used that model but didn't say fixtures asset_types, weirdness could quite easily happen.


The code Doesn't run at all. And asset_types is included in the
fixtures for this test suite so it should be reloaded before the test executes should it not?

Do you mean to say that the code

AssetType.asset_connection_names.each do |at|    belongs_to at, :foreign_key => 'asset_id' end

It's executed at the point the model is loaded. I wouldn't want to bet
when exactly that is (stick a breakpoint in and find out).