Sha256: 9f908f0aa0d43f47d97eb7a062e00c2c7715918e38ca9e226bc40a714ebc7d04
Contents?: true
Size: 1.17 KB
Versions: 2
Compression:
Stored size: 1.17 KB
Contents
# Make all rspec configuration changes to this file. # Leave automatically generated configuration files untouched to facilitate gem upgrades. ENV["RAILS_ENV"] ||= "test" require File.expand_path("dummy/config/environment.rb", __dir__) require "rspec/rails" require "active_record" require "spec_helper" Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].sort.each { |f| require f } 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) config.include(SubscriptionHelpers) end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
nulogy_message_bus_producer-2.1.1 | spec/integration_spec_helper.rb |
nulogy_message_bus_producer-2.1.0 | spec/integration_spec_helper.rb |