Sha256: 402b06a6ea11b9ab3bffb4593b0eb610c8e09f9311f4fa26bf517bb57607ebec

Contents?: true

Size: 637 Bytes

Versions: 6

Compression:

Stored size: 637 Bytes

Contents

# frozen_string_literal: true

require "bundler/setup"

Bundler.require :default, :development

Combustion.initialize! :active_record
ActiveSupport.run_load_hooks :gutentag unless defined?(Gutentag::Engine)

require "rspec/rails"

RSpec.configure do |config|
  if config.respond_to?(:use_transactional_tests)
    config.use_transactional_tests = false
  else
    config.use_transactional_fixtures = false
  end

  config.before(:suite) do
    DatabaseCleaner.strategy = :truncation
    DatabaseCleaner.clean_with(:truncation)
  end

  config.around(:each) do |example|
    DatabaseCleaner.cleaning do
      example.run
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
gutentag-2.4.0 spec/spec_helper.rb
gutentag-2.3.2 spec/spec_helper.rb
gutentag-2.3.1 spec/spec_helper.rb
gutentag-2.3.0 spec/spec_helper.rb
gutentag-2.2.1 spec/spec_helper.rb
gutentag-2.2.0 spec/spec_helper.rb