test/unit/storage.rb in ruote-2.1.7 vs test/unit/storage.rb in ruote-2.1.8

- old
+ new

@@ -5,20 +5,12 @@ # Mon Dec 14 15:03:13 JST 2009 # require File.join(File.dirname(__FILE__), %w[ .. test_helper.rb ]) -begin - require 'yajl' -rescue LoadError - require 'json' -end -begin - require 'patron' -rescue LoadError - # stick with net/http -end +require_json +require_patron require File.join(File.dirname(__FILE__), %w[ .. functional storage_helper.rb ]) class UtStorage < Test::Unit::TestCase @@ -122,16 +114,9 @@ assert_equal true, r end def test_keys_should_be_string - - #begin - # require 'yajl' - #rescue LoadError - # require 'json' - #end - #Rufus::Json.detect_backend doc = { '_id' => 'h0', 'type' => 'dogfood', :m0 => :z, :m1 => [ :a, :b ] } @s.put(doc)