Sha256: 3709cc8e92999b5a405adfc463a1bf093e7e02762fdc2ccae6e238bdef4235d5

Contents?: true

Size: 487 Bytes

Versions: 10

Compression:

Stored size: 487 Bytes

Contents

# frozen_string_literal: true
require 'spec_helper'

require 'engine_cart'
EngineCart.load_application!

require 'rspec/rails'
ActiveJob::Base.queue_adapter = :test

require 'database_cleaner'

RSpec.configure do |config|
  config.before do |example|
    if example.metadata[:db_clean]
      DatabaseCleaner.clean_with(:truncation)
      DatabaseCleaner.strategy = :truncation
    end
  end

  config.after do |example|
    DatabaseCleaner.clean if example.metadata[:db_clean]
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
active_encode-1.1.3 spec/rails_helper.rb
active_encode-1.1.2 spec/rails_helper.rb
active_encode-1.1.1 spec/rails_helper.rb
active_encode-1.1.0 spec/rails_helper.rb
active_encode-1.0.0 spec/rails_helper.rb
active_encode-0.8.2 spec/rails_helper.rb
active_encode-0.8.1 spec/rails_helper.rb
active_encode-0.8.0 spec/rails_helper.rb
active_encode-0.7.0 spec/rails_helper.rb
active_encode-0.6.0 spec/rails_helper.rb