Sha256: 0859cdb3393269fc2b1d954391a454ea52387e17485bbcd9d3036e68c1a88aa5
Contents?: true
Size: 536 Bytes
Versions: 12
Compression:
Stored size: 536 Bytes
Contents
ENV["RAILS_ENV"] = "test" require "database_cleaner" require File.expand_path("../dummy/config/environment", __FILE__) Dir["spec/support/**/*.rb"].sort.each { |file| load file } RSpec.configure do |config| config.order = "random" DatabaseCleaner.strategy = :transaction config.around(:each, db: true) do |example| DatabaseCleaner.start example.run DatabaseCleaner.clean end unless defined?(silence_stream) require "active_support/testing/stream" config.include ActiveSupport::Testing::Stream end end
Version data entries
12 entries across 12 versions & 2 rubygems