spec/factories/orders.rb in patch_ruby-1.24.2 vs spec/factories/orders.rb in patch_ruby-2.0.0
- old
+ new
@@ -1,12 +1,13 @@
FactoryBot.define do
factory :order, class: Patch::Order do
sequence(:id) { |n| n }
- mass_g { 1_000 }
+ amount { 1_000 }
+ unit { "g" }
production { false }
state { "draft" }
- allocation_state { "pending" }
- price_cents_usd { 500 }
- patch_fee_cents_usd { 5 }
+ price { 500 }
+ patch_fee { 5 }
+ currency { "USD" }
metadata { {} }
end
end