I have an existing Factory (order), and I am trying to make a new factory that effectively inherits from it. It looks like this:
factory :order_with_domain, :parent => :order do |o|
o.order_provider 'DomainNameHere'
end
Upon doing that and running the specs with order_with_domain
, I am greeted by this:
undefined method `order_provider=' for #<Order:0x00007fc70d9fafc0>
Did you mean? order_provider
I receive this same error if I try and place order_provider
in the parent Factory.
Any helps is much appreciated.
Thanks.
undefined method
error rather than telling me to tryorder_provider
? From, the console, I can callorder.order_provider
and get what I need. – Transfixorder_provider
) but not a setter (order_provider=
). Please edit your question to show the code for your Order model. – RegerNoMethodError
just so happensdid_you_mean
found a similar method name and offered a suggestion. Just like"S".chimp
asks me if I meantchomp
orchomp!
– Sauer#order_provider=
(it's a different method than#order_provider
). – Lebel