diff --git a/spec/factories/return_authorization_factory.rb b/spec/factories/return_authorization_factory.rb new file mode 100644 index 0000000000..ad77351a40 --- /dev/null +++ b/spec/factories/return_authorization_factory.rb @@ -0,0 +1,9 @@ +FactoryBot.define do + factory :return_authorization, class: Spree::ReturnAuthorization do + number '100' + amount 100.00 + association(:order, factory: :shipped_order) + reason 'no particular reason' + state 'received' + end +end diff --git a/spec/models/spree/adjustment_spec.rb b/spec/models/spree/adjustment_spec.rb index 4c1252900b..ef66733ec1 100644 --- a/spec/models/spree/adjustment_spec.rb +++ b/spec/models/spree/adjustment_spec.rb @@ -245,7 +245,7 @@ module Spree let!(:zone) { create(:zone_with_member) } let!(:order) { create(:order, bill_address: create(:address)) } let!(:line_item) { create(:line_item, order: order) } - let(:tax_rate) { create(:tax_rate, included_in_price: true, calculator: Calculator::FlatRate.new(preferred_amount: 0.1)) } + let(:tax_rate) { create(:tax_rate, included_in_price: true, calculator: ::Calculator::FlatRate.new(preferred_amount: 0.1)) } let(:adjustment) { line_item.adjustments(:reload).first } before do