From 6187cf8ebc16f6abc3e5dec3845a704c3531f1f7 Mon Sep 17 00:00:00 2001 From: Abdelkader Boudih Date: Wed, 21 May 2014 17:08:59 +0000 Subject: DRY --- test/helper.rb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'test/helper.rb') 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' -- cgit v1.2.3