Sha256: 1fd61f4ba3c5ee71f3357f3831dabc9d9eadc6fa1e39ddf9c80c9b1cad2242db

Contents?: true

Size: 1.2 KB

Versions: 3

Compression:

Stored size: 1.2 KB

Contents

# frozen_string_literal: true

# Configure Rails Environment
ENV['RAILS_ENV'] = 'test'

# Run Coverage report
require 'solidus_dev_support/rspec/coverage'
require 'pry'
require 'vcr'
require 'webmock/rspec'
require 'net/smtp'

# Create the dummy app if it's still missing.
dummy_env = "#{__dir__}/dummy/config/environment.rb"
system 'bin/rake extension:test_app' unless File.exist? dummy_env
require dummy_env

# 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["#{__dir__}/support/**/*.rb"].sort.each { |f| require f }

require 'spree/testing_support/order_walkthrough'

# Requires factories defined in lib/solidus_bolt/testing_support/factories.rb
SolidusDevSupport::TestingSupport::Factories.load_for(SolidusBolt::Engine)

RSpec.configure do |config|
  config.infer_spec_type_from_file_location!
  config.use_transactional_fixtures = false
  config.include SolidusBolt::BoltHelper

  if Spree.solidus_gem_version < Gem::Version.new('2.11')
    config.extend Spree::TestingSupport::AuthorizationHelpers::Request, type: :system
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
solidus_bolt-0.7.2 spec/spec_helper.rb
solidus_bolt-0.7.1 spec/spec_helper.rb
solidus_bolt-0.7.0 spec/spec_helper.rb