aboutsummaryrefslogtreecommitdiffstats
path: root/activejob/test/helper.rb
diff options
context:
space:
mode:
Diffstat (limited to 'activejob/test/helper.rb')
-rw-r--r--activejob/test/helper.rb19
1 files changed, 19 insertions, 0 deletions
diff --git a/activejob/test/helper.rb b/activejob/test/helper.rb
new file mode 100644
index 0000000000..104dabd861
--- /dev/null
+++ b/activejob/test/helper.rb
@@ -0,0 +1,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