Show
Ignore:
Timestamp:
12/04/07 14:44:15 (6 years ago)
Author:
coji
Message:

lang/ruby/ssb: use uri param key ssb_q instead of ssb

Location:
lang/ruby/ssb/trunk/test
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • lang/ruby/ssb/trunk/test/filter_test.rb

    r2295 r2404  
    2121    assert_equal( 
    2222        SSB::Application.filter_html("<a href='/bar'>foo</a>", URI.parse('http://example.com/foo'), Term.new(SSB::KtaiSpec::CARRIER_DOCOMO), '', ''), 
    23         %Q{<a href=\"./?q=http%3A%2F%2Fexample.com%3A80%2Fbar\" target=\"_top\" >foo</a>} 
     23        %Q{<a href=\"./?ssb_q=http%3A%2F%2Fexample.com%3A80%2Fbar\" target=\"_top\" >foo</a>} 
    2424    ) 
    2525  end 
  • lang/ruby/ssb/trunk/test/request_test.rb

    r2397 r2404  
    88  def request_params 
    99    { 
    10       'q'.taint  => MockServer.uri.dup.taint, 
     10      'ssb_q'.taint  => MockServer.uri.dup.taint, 
    1111      'p1'.taint => 'foo'.taint, 
    1212      'p2'.taint => 'bar'.taint, 
  • lang/ruby/ssb/trunk/test/ssb_test.rb

    r2252 r2404  
    4949 
    5050  test 'ssb get local' do 
    51     ret = kick_ssb('GET', "q=#{MockServer.uri}&uid=NULLGWDOCOMO") 
     51    ret = kick_ssb('GET', "ssb_q=#{MockServer.uri}&uid=NULLGWDOCOMO") 
    5252    assert_match(/It works by GET/, ret) 
    5353  end 
     
    5555  test 'ssb get invalidhost' do 
    5656    # noname is invalid hostname 
    57     ret = kick_ssb('GET', 'q=noname') 
     57    ret = kick_ssb('GET', 'ssb_q=noname') 
    5858    exp = Regexp.union( 
    5959      /getaddrinfo: Name or service not known/, 
     
    6363 
    6464  test 'ssb post local' do 
    65     ret = kick_ssb('POST', '', "q=#{MockServer.uri}?param=test&uid=NULLGWDOCOMO") 
     65    ret = kick_ssb('POST', '', "ssb_q=#{MockServer.uri}?param=test&uid=NULLGWDOCOMO") 
    6666    assert_match(/It works by POST/, ret) 
    6767  end 
     
    6969  test 'ssb post invalidhost' do 
    7070    # noname is invalid hostname 
    71     ret = kick_ssb('POST', '', 'q=noname&param=test&uid=NULLGWDOCOMO') 
     71    ret = kick_ssb('POST', '', 'ssb_q=noname&param=test&uid=NULLGWDOCOMO') 
    7272    assert_match(/getaddrinfo: (?:nodename nor servname provided|Name or service not known)/, ret) 
    7373  end