Open lowang opened 3 years ago
Thanks for reporting this, clearly a bug. I think we should re-think this API in general. Yielding attribute values via block args can be problematic when you have attributes that match ruby keywords.
I still think having a convention for reserved words like do |then|
-> do |then_|
would be good enough
@flash-gordon yeah...seems like a pragmatic choice. I wonder though....maybe we could provide a struct with values that are lazy, this way you could still rely on more than one value but access it through one object.
@solnic yeah I think it'd be possible too
This makes ROM factory somewhat unusable
Describe the bug
Overriding attributes is causing factory field resolver to receive
nil
instead of overwritten value.To Reproduce
create file
app_spec.rb
with:now
rspec app_spec.rb
is producing following error:Expected behavior
I was expecting
email
callback to receiveAlice
value.My environment