Sha256: 0d9cb61dc710d321b0d7651551ec0fd1a9d3fcf5c6d097cfbadf469c273898d0
Contents?: true
Size: 786 Bytes
Versions: 9
Compression:
Stored size: 786 Bytes
Contents
# Configure Rails Environment ENV['RAILS_ENV'] = 'test' require File.expand_path('../dummy/config/environment.rb', __FILE__) require 'spree_dev_tools/rspec/spec_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')].sort.each { |f| require f } require 'spree/testing_support/locale_helpers' if Spree.version.to_f >= 4.2 RSpec.configure do |config| config.before(:each) do allow(RSpec::Rails::ViewRendering::EmptyTemplateHandler) .to receive(:call) .and_return(%("")) if Rails.gem_version >= Gem::Version.new('6.0.0.beta1') end config.include Spree::TestingSupport::LocaleHelpers if defined?(Spree::TestingSupport::LocaleHelpers) end
Version data entries
9 entries across 9 versions & 1 rubygems