Sha256: 40ca287bc5f3a9cb0d8305dcc2eae5b60956a108ced517fccf3aac7080e25ed8

Contents?: true

Size: 890 Bytes

Versions: 3

Compression:

Stored size: 890 Bytes

Contents

# 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__).tap { |file|
  # Create the dummy app if it's still missing.
  system 'bin/rake extension:test_app' unless File.exist? file
}

# 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/<%= file_name %>/factories.rb
require '<%= file_name %>/factories'

RSpec.configure do |config|
  config.infer_spec_type_from_file_location!
  config.use_transactional_fixtures = false
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
solidus_dev_support-1.5.0 lib/solidus_dev_support/templates/extension/spec/spec_helper.rb.tt
solidus_dev_support-1.4.0 lib/solidus_dev_support/templates/extension/spec/spec_helper.rb.tt
solidus_dev_support-1.3.0 lib/solidus_dev_support/templates/extension/spec/spec_helper.rb.tt