From 0519269a536db9604c9ca21ef5cb8c6241e8b294 Mon Sep 17 00:00:00 2001 From: Michael Toulouse Date: Mon, 2 Apr 2018 06:40:12 -0400 Subject: [PATCH] Replacing deprecated #ignore with #transient --- spec/factories.rb | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/spec/factories.rb b/spec/factories.rb index e662e80509..926e420a42 100644 --- a/spec/factories.rb +++ b/spec/factories.rb @@ -87,7 +87,7 @@ FactoryGirl.define do coordinator { Enterprise.is_distributor.first || FactoryGirl.create(:distributor_enterprise) } - ignore do + transient do suppliers [] distributors [] variants [] @@ -148,7 +148,7 @@ FactoryGirl.define do shipping_method { create(:shipping_method, distributors: [shop]) } begins_at { 1.month.ago } - ignore do + transient do with_items false with_proxy_orders false end @@ -218,7 +218,7 @@ FactoryGirl.define do is_primary_producer false sells "any" - ignore do + transient do with_payment_and_shipping false end @@ -250,7 +250,7 @@ FactoryGirl.define do end factory :enterprise_fee, :class => EnterpriseFee do - ignore { amount nil } + transient { amount nil } sequence(:name) { |n| "Enterprise fee #{n}" } sequence(:fee_type) { |n| EnterpriseFee::FEE_TYPES[n % EnterpriseFee::FEE_TYPES.count] } @@ -316,7 +316,7 @@ FactoryGirl.define do end factory :completed_order_with_fees, parent: :order_with_totals_and_distribution do - ignore do + transient do shipping_fee 3 payment_fee 5 end @@ -345,7 +345,7 @@ FactoryGirl.define do end factory :taxed_product, :parent => :product do - ignore do + transient do tax_rate_amount 0 zone nil end @@ -473,7 +473,7 @@ FactoryGirl.modify do end factory :payment do - ignore do + transient do distributor { order.distributor || Enterprise.is_distributor.first || FactoryGirl.create(:distributor_enterprise) } end payment_method { FactoryGirl.create(:payment_method, distributors: [distributor]) }