Skip to content
This repository has been archived by the owner on Sep 12, 2019. It is now read-only.

Commit

Permalink
Avoid loading factory target classes on require
Browse files Browse the repository at this point in the history
Not a huge deal, but we should avoid loading the targets of these
factories until they are explcitly run.
  • Loading branch information
jhawthorn committed Nov 21, 2017
1 parent f746ac1 commit fa40d40
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit fa40d40

Please sign in to comment.