Sha256: 549a51b91d5c5153b8b1923af25c74085794c717001cf8fa22ddf2437ee091fc
Contents?: true
Size: 644 Bytes
Versions: 2
Compression:
Stored size: 644 Bytes
Contents
# # Testing rufus-verbs # # jmettraux@gmail.com # # Tue Feb 12 23:10:54 JST 2008 # require File.dirname(__FILE__) + '/base.rb' class EscapeTest < Test::Unit::TestCase include Rufus::Verbs def test_0 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 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 end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rufus-verbs-1.0.1 | test/escape_test.rb |
rufus-verbs-1.0.0 | test/escape_test.rb |