Sha256: e2fefe510b11ae3a01a954384805d22dc56513d9e4d5b8e8bbd980628122ceba
Contents?: true
Size: 975 Bytes
Versions: 16
Compression:
Stored size: 975 Bytes
Contents
ENV["RAILS_ENV"] ||= "test" require File.expand_path("dummy/config/environment.rb", __dir__) require "rspec/rails" require "rspec/json_expectations" require "active_record" require "spec_helper" RSpec.configure do |config| # Uncomment this line to see full backtraces for spec failures # config.backtrace_exclusion_patterns = [] config.profile_examples = 0 # implements `use_transactional_fixtures = true` config.before do connection = ActiveRecord::Base.connection connection.begin_transaction(joinable: false) end config.after do connection = ActiveRecord::Base.connection connection.rollback_transaction if connection.transaction_open? ActiveRecord::Base.clear_active_connections! end # Increase characters displayed when exceptions fail (the RSpec default is 200 characters). config.expect_with(:rspec) do |c| c.max_formatted_output_length = 1_000_000 end config.include(SpecUtils) config.include(SqlHelpers) end
Version data entries
16 entries across 16 versions & 1 rubygems