Skip to content

Commit

Permalink
Updated factories loading after recent changes in solidus
Browse files Browse the repository at this point in the history
This commit reflects changes made by Solidus [PR #169](solidusio/solidus_dev_support#169 (comment))
When testing extensions using Solidus vesions that support
the definition_file_paths, it will load the core factory first
and then the ones defined in
`lib/extension_name/testing_support/factories`.
  • Loading branch information
cpfergus1 committed May 25, 2021
1 parent c984b34 commit c9cd5bc
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
File renamed without changes.
2 changes: 1 addition & 1 deletion spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
Dir[File.join(File.dirname(__FILE__), 'support/**/*.rb')].each { |f| require f }

# Requires factories defined in lib/solidus_log_viewer/factories.rb
require 'solidus_log_viewer/factories'
SolidusDevSupport::TestingSupport::Factories.load_for(SolidusLogViewer::Engine)

RSpec.configure do |config|
config.infer_spec_type_from_file_location!
Expand Down

0 comments on commit c9cd5bc

Please sign in to comment.