Sha256: bb14602887e0c86652fc5d55cf814866e459ae785e711e2e07b95e8ec96c10b6
Contents?: true
Size: 816 Bytes
Versions: 3
Compression:
Stored size: 816 Bytes
Contents
# frozen_string_literal: true require "bundler/setup" Bundler.require :default, :development Dir["#{__dir__}/support/**/*.rb"].sort.each { |file| require file } Combustion.initialize! :active_record, :database_migrate => false AdjustMigrations.call(Combustion::Application) ActiveSupport.run_load_hooks :gutentag unless defined?(Gutentag::Engine) require "rspec/rails" RSpec.configure do |config| config.disable_monkey_patching! 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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
gutentag-2.6.2 | spec/spec_helper.rb |
gutentag-2.6.1 | spec/spec_helper.rb |
gutentag-2.6.0 | spec/spec_helper.rb |