summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorAlberto Vena <kennyadsl@gmail.com>2021-03-05 14:24:11 +0100
committerGitHub <noreply@github.com>2021-03-05 14:24:11 +0100
commit1031f7edc12030d92f8c7ce739694793b036b416 (patch)
tree0b8981463963d3d59d30069963e28b0127c480ca /spec
parentd163c8fc5e7f33cee272b0ca6c9fadfe443317de (diff)
parent632df71b3196dead6ecaa5b2b93c16d093b2e033 (diff)
Merge pull request #203 from solidusio-contrib/kennyadsl/use-new-factories-loading
Load factories using the new standard
Diffstat (limited to 'spec')
-rw-r--r--spec/spec_helper.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb
index b1657e9..c84dbec 100644
--- a/spec/spec_helper.rb
+++ b/spec/spec_helper.rb
@@ -18,8 +18,7 @@ require 'solidus_dev_support/rspec/feature_helper'
# in spec/support/ and its subdirectories.
Dir["#{__dir__}/support/**/*.rb"].sort.each { |f| require f }
-# Requires factories defined in lib/solidus_subscriptions/factories.rb
-require 'solidus_subscriptions/testing_support/factories'
+SolidusDevSupport::TestingSupport::Factories.load_for(SolidusSubscriptions::Engine)
RSpec.configure do |config|
config.infer_spec_type_from_file_location!