Not a king in Rspec or testing in general. I have ...
# support
v
Not a king in Rspec or testing in general. I have a gem that adds some attributes to
Spree::Variant
and
Spree::Shipment
if I am using
order_ready_to_ship
testing support factory, how do I go about testing this? The factory does not include the attributes. Should I stub them? 😅
j
Factory Bot lets you modify exist factories, but I kinda prefer just defining your own new factories for things like products and variants that look more like the products you sell.
v
Thanks! Going to look into it