spec/spec_helper.rb in lev-7.0.3 vs spec/spec_helper.rb in lev-7.1.0

- old
+ new

@@ -2,11 +2,12 @@ # specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`. # Require this file using `require "spec_helper"` to ensure that it is only # loaded once. # # See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration - +require 'bundler' +Bundler.require('default') require 'active_job' ActiveJob::Base.queue_adapter = :test ActiveJob::Base.logger = ::Logger.new(nil) @@ -23,9 +24,10 @@ require 'lev' require 'byebug' require 'transaction_retry' + TransactionRetry.apply_activerecord_patch Dir[(File.expand_path('../support', __FILE__)) + ("/**/*.rb")].each { |f| require f } ActiveRecord::Base.establish_connection(