Sha256: 8eac5e6eba25fe1e7e5cddca892cf52b14ae5327f4033da42898864d43b075c3

Contents?: true

Size: 701 Bytes

Versions: 4

Compression:

Stored size: 701 Bytes

Contents

# frozen_string_literal: true

require "bundler/setup"

Bundler.require :default, :development

Dir["#{__dir__}/support/**/*.rb"].each { |file| require file }

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

4 entries across 4 versions & 1 rubygems

Version Path
gutentag-2.5.2 spec/spec_helper.rb
gutentag-2.5.1 spec/spec_helper.rb
gutentag-2.5.0 spec/spec_helper.rb
gutentag-2.4.1 spec/spec_helper.rb