test/test_helper.rb in ruote-2.1.7 vs test/test_helper.rb in ruote-2.1.8

- old
+ new

@@ -8,5 +8,22 @@ require File.join(File.dirname(__FILE__), 'path_helper') require 'test/unit' require 'rubygems' + +def require_json + begin + require 'yajl' + rescue LoadError + require 'json' + end +end + +def require_patron + begin + require 'patron' + rescue LoadError + # stick with net/http + end +end +