Sha256: 921747dff3d5f948fe8304c7e88183a9f0d1b087f3435a29db33ff4f98309f24

Contents?: true

Size: 1.21 KB

Versions: 5

Compression:

Stored size: 1.21 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 "rspec/json_expectations"
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

5 entries across 5 versions & 1 rubygems

Version Path
nulogy_message_bus_producer-3.4.0 spec/integration_spec_helper.rb
nulogy_message_bus_producer-3.3.0 spec/integration_spec_helper.rb
nulogy_message_bus_producer-3.2.1 spec/integration_spec_helper.rb
nulogy_message_bus_producer-3.2.0 spec/integration_spec_helper.rb
nulogy_message_bus_producer-3.1.1 spec/integration_spec_helper.rb