diff options
author | Mattia Roccoberton <mat@blocknot.es> | 2020-01-17 17:49:55 +0100 |
---|---|---|
committer | Mattia Roccoberton <mat@blocknot.es> | 2020-01-20 09:08:24 +0100 |
commit | 94b7fb03f0358f75320aec9e427f8dd073dc74cf (patch) | |
tree | d5247bb8b64a139f988bed6bae07df7e0ba3bd0a /spec/spec_helper.rb | |
parent | 3292f7cc82812a05cbed8ffa27d9d212021ccfc7 (diff) |
Update extension structure using dev_support
Diffstat (limited to 'spec/spec_helper.rb')
-rw-r--r-- | spec/spec_helper.rb | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index e083fc1..6c18636 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -1,11 +1,24 @@ # frozen_string_literal: true +# Configure Rails Environment ENV['RAILS_ENV'] ||= 'test' +# Run Coverage report require 'solidus_dev_support/rspec/coverage' require File.expand_path('dummy/config/environment.rb', __dir__) +# Requires factories and other useful helpers defined in spree_core. require 'solidus_dev_support/rspec/feature_helper' +# Requires supporting ruby files with custom matchers and macros, etc, +# in spec/support/ and its subdirectories. Dir[File.join(File.dirname(__FILE__), 'support/**/*.rb')].each { |f| require f } + +# Requires factories defined in lib/solidus_subscriptions/factories.rb +require 'solidus_subscriptions/factories' + +RSpec.configure do |config| + config.infer_spec_type_from_file_location! + config.use_transactional_fixtures = false +end |