diff --git a/lib/spree/testing_support/factories/stock_transfer_factory.rb b/lib/spree/testing_support/factories/stock_transfer_factory.rb index d4a0729..6c3723a 100644 --- a/lib/spree/testing_support/factories/stock_transfer_factory.rb +++ b/lib/spree/testing_support/factories/stock_transfer_factory.rb @@ -2,7 +2,7 @@ sequence(:source_code) { |n| "SRC#{n}" } sequence(:destination_code) { |n| "DEST#{n}" } - factory :stock_transfer, class: Spree::StockTransfer do + factory :stock_transfer, class: 'Spree::StockTransfer' do source_location { Spree::StockLocation.create!(name: "Source Location", code: generate(:source_code), admin_name: "Source") } factory :stock_transfer_with_items do