Sha256: 577c9bfb436f2f1f9838b158a6391e5a4f0b75ed8c5f68974b7e47dedfb41f09

Contents?: true

Size: 1002 Bytes

Versions: 6

Compression:

Stored size: 1002 Bytes

Contents

# This file is copied to ~/spec when you run 'ruby script/generate rspec'
# from the project root directory.
ENV["RAILS_ENV"] ||= 'test'

require 'solidus_sample'
require 'spree/testing_support/dummy_app'
DummyApp.setup(
  gem_root: File.expand_path('../../', __FILE__),
  lib_name: 'solidus_sample'
)

require 'rspec/rails'
require 'database_cleaner'

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

  config.before(:each) do
    DatabaseCleaner.clean_with(:truncation)
  end

  # If you're not using ActiveRecord, or you'd prefer not to run each of your
  # examples within a transaction, comment the following line or assign false
  # instead of true.
  config.use_transactional_fixtures = false

  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_sample-2.5.2 spec/spec_helper.rb
solidus_sample-2.5.1 spec/spec_helper.rb
solidus_sample-2.5.0 spec/spec_helper.rb
solidus_sample-2.5.0.rc1 spec/spec_helper.rb
solidus_sample-2.5.0.beta2 spec/spec_helper.rb
solidus_sample-2.5.0.beta1 spec/spec_helper.rb