test/test_helper.rb in backburner-0.4.6 vs test/test_helper.rb in backburner-1.0.0
- old
+ new
@@ -1,8 +1,12 @@
require 'rubygems'
require 'tempfile'
require 'minitest/autorun'
-require 'mocha/setup'
+begin
+ require 'mocha/setup'
+rescue LoadError
+ require 'mocha'
+end
$:.unshift File.expand_path("../../lib")
require 'backburner'
require File.expand_path('../helpers/templogger', __FILE__)
# Configure Backburner
\ No newline at end of file