Hello,
Sorry if this question has already been asked or I am using not super accurate terminology.
I am fabricating and object like this:
partner = Fabricate(:kinetic_partner, type: type, partner_flags: { "ecommerce": "true" })
But after fabrication the key of partner_flags hash is converted to symbols.
>> partner.partner_flags
{:ecommerce=>"true"}
I understand that symbols are a better option here but in our legacy codebase string keys are used and it is hard to change them. Is there a way to keep the string key for ecommerce after fabrication to avoid using with_indifferent_access for making object structure consistent between the actual code and specs?
Thanks for looking at this.
Sepand