Sha256: 0380d8de113c694f668c81ce2a58b8a366c9d6238c073538445fa0a3674102af

Contents?: true

Size: 744 Bytes

Versions: 6

Compression:

Stored size: 744 Bytes

Contents

if ENV["COVERAGE"]
  require 'simplecov'
  SimpleCov.start('rails')
end

require 'rspec/core'

require 'spree/testing_support/preferences'
require 'spree/config'
require 'with_model'

RSpec.configure do |config|
  config.disable_monkey_patching!
  config.color = true
  config.expect_with :rspec do |c|
    c.syntax = :expect
  end
  config.mock_with :rspec do |c|
    c.syntax = :expect
  end

  config.before :each do
    reset_spree_preferences
  end

  config.include Spree::TestingSupport::Preferences
  config.extend WithModel

  config.filter_run focus: true
  config.run_all_when_everything_filtered = true

  config.example_status_persistence_file_path = "./spec/examples.txt"

  config.order = :random

  Kernel.srand config.seed
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
solidus_core-2.5.2 spec/spec_helper.rb
solidus_core-2.5.1 spec/spec_helper.rb
solidus_core-2.5.0 spec/spec_helper.rb
solidus_core-2.5.0.rc1 spec/spec_helper.rb
solidus_core-2.5.0.beta2 spec/spec_helper.rb
solidus_core-2.5.0.beta1 spec/spec_helper.rb