gem 'minitest' if RUBY_VERSION =~ /^1\.9/
require 'minitest/autorun'
if ENV['DEBUG']
  require 'byebug'
else
  def byebug; end
end

$:.unshift File.expand_path('../../lib', __FILE__)

gem 'minitest' if RUBY_VERSION =~ /^1\.9/
require 'minitest/autorun'
require 'byebug'

$:.unshift File.expand_path('../../lib', __FILE__)

--- 
+++ 
@@ -1,5 +1,9 @@
 gem 'minitest' if RUBY_VERSION =~ /^1\.9/
 require 'minitest/autorun'
-require 'byebug'
+if ENV['DEBUG']
+  require 'byebug'
+else
+  def byebug; end
+end
 
 $:.unshift File.expand_path('../../lib', __FILE__)
Add support for debugging with byebug

If you wish to enable byebug for the unit tests, just run

      DEBUG=true rake test
