Hi Ian,
I haven't verified this before thought I'd note it. When
exploring the ticket #33 Error with Ruby 1.9.2 - Can't add a new key into hash during iteration I discovered that it seems that Pickle doesn't
respect the primary key attribute of an association.
For example, in my app we have two models: Placement and
Registration. A placement belongs to a registration however,
circumstances dictate that the id of the Registration model is not
actually the real registration id, so we have a registration_id in
both the Placement and Registration models and make the association
against these eg:
belongs_to :registration, :primary_key => "registration_id"
So, placement.registration_id = registration.registration_id
But this means, in my feature I can't use:
Then a placement should exist with registration: the registration
It does work with the setup step though eg:
Given a placement exists with registration: the registration
Anyway, I haven't looked into it much at this stage. Again, I'm
not sure what changes will result from your refactoring.
Cheers,
Michael.