aboutsummaryrefslogtreecommitdiffstats
path: root/test/helper.rb
blob: 104dabd8611bcf340a601047b5b2415aa675a551 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
require 'bundler'
Bundler.setup

$LOAD_PATH << File.dirname(__FILE__) + "/../lib"

require 'active_job'

adapter  = ENV['AJADAPTER'] || 'inline'
puts "Testing#{" integration" if ENV['AJ_INTEGRATION_TESTS']} using #{adapter}"

if ENV['AJ_INTEGRATION_TESTS']
  require 'support/integration/helper'
else
  require "adapters/#{adapter}"
end

require 'active_support/testing/autorun'

ActiveJob::Base.logger.level = Logger::DEBUG