test/escape_test.rb in rufus-verbs-0.10 vs test/escape_test.rb in rufus-verbs-1.0.0

- old
+ new

@@ -5,34 +5,32 @@ # jmettraux@gmail.com # # Tue Feb 12 23:10:54 JST 2008 # -require 'test/unit' +require File.dirname(__FILE__) + '/base.rb' -require 'rufus/verbs' - class EscapeTest < Test::Unit::TestCase - include Rufus::Verbs + include Rufus::Verbs - def test_0 + def test_0 - req = put( - :dry_run => true, - :uri => "http://localhost:7777/items/1", - :query => { "a" => "hontou ni ?" }) + req = put( + :dry_run => true, + :uri => "http://localhost:7777/items/1", + :query => { "a" => "hontou ni ?" }) - assert_equal "/items/1?a=hontou%20ni%20?", req.path + assert_equal "/items/1?a=hontou%20ni%20?", req.path - req = put( - :dry_run => true, - :uri => "http://localhost:7777/items/1", - :params => { "a" => "hontou ni ?" }, - :no_escape => true) + req = put( + :dry_run => true, + :uri => "http://localhost:7777/items/1", + :params => { "a" => "hontou ni ?" }, + :no_escape => true) - assert_equal "/items/1?a=hontou ni ?", req.path - # would fail anyway... - end + assert_equal "/items/1?a=hontou ni ?", req.path + # would fail anyway... + end end