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

Version Path
nulogy_message_bus_producer-5.0.8 spec/integration_spec_helper.rb
nulogy_message_bus_producer-5.0.7 spec/integration_spec_helper.rb
nulogy_message_bus_producer-5.0.6 spec/integration_spec_helper.rb
nulogy_message_bus_producer-5.0.5 spec/integration_spec_helper.rb
nulogy_message_bus_producer-5.0.4 spec/integration_spec_helper.rb
nulogy_message_bus_producer-5.0.3 spec/integration_spec_helper.rb
nulogy_message_bus_producer-5.0.2 spec/integration_spec_helper.rb
nulogy_message_bus_producer-5.0.1 spec/integration_spec_helper.rb
nulogy_message_bus_producer-5.0.1.alpha spec/integration_spec_helper.rb
nulogy_message_bus_producer-5.0.0 spec/integration_spec_helper.rb
nulogy_message_bus_producer-4.0.0 spec/integration_spec_helper.rb
nulogy_message_bus_producer-3.7.0 spec/integration_spec_helper.rb
nulogy_message_bus_producer-3.6.0 spec/integration_spec_helper.rb
nulogy_message_bus_producer-3.5.0 spec/integration_spec_helper.rb
nulogy_message_bus_producer-4.0.0.alpha spec/integration_spec_helper.rb
nulogy_message_bus_producer-3.4.1 spec/integration_spec_helper.rb