aboutsummaryrefslogtreecommitdiffstats
path: root/test/helper.rb
diff options
context:
space:
mode:
authorAbdelkader Boudih <terminale@gmail.com>2014-05-21 17:08:59 +0000
committerAbdelkader Boudih <terminale@gmail.com>2014-05-21 17:31:52 +0000
commit6187cf8ebc16f6abc3e5dec3845a704c3531f1f7 (patch)
tree64af7f4db9c351f1194935d891e66962123cc638 /test/helper.rb
parent1513705b9d8d1d77d84ef56cf7b14ba33b8ecfa1 (diff)
downloadrails-6187cf8ebc16f6abc3e5dec3845a704c3531f1f7.tar.gz
rails-6187cf8ebc16f6abc3e5dec3845a704c3531f1f7.tar.bz2
rails-6187cf8ebc16f6abc3e5dec3845a704c3531f1f7.zip
DRY
Diffstat (limited to 'test/helper.rb')
-rw-r--r--test/helper.rb6
1 files changed, 4 insertions, 2 deletions
diff --git a/test/helper.rb b/test/helper.rb
index 0e51396517..7ba7607df2 100644
--- a/test/helper.rb
+++ b/test/helper.rb
@@ -4,9 +4,11 @@ Bundler.setup
$LOAD_PATH << File.dirname(__FILE__) + "/../lib"
require 'active_job'
-require "adapters/#{ENV['AJADAPTER'] || 'inline'}"
-puts "Testing using #{ENV['AJADAPTER'] || 'inline'}"
+adapter = ENV['AJADAPTER'] || 'inline'
+require "adapters/#{adapter}"
+puts "Testing using #{adapter}"
+
require 'active_support/testing/autorun'