Changeset 2404 for lang/ruby/ssb/trunk/test
- Timestamp:
- 12/04/07 14:44:15 (5 years ago)
- Location:
- lang/ruby/ssb/trunk/test
- Files:
-
- 3 modified
-
filter_test.rb (modified) (1 diff)
-
request_test.rb (modified) (1 diff)
-
ssb_test.rb (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
lang/ruby/ssb/trunk/test/filter_test.rb
r2295 r2404 21 21 assert_equal( 22 22 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>} 24 24 ) 25 25 end -
lang/ruby/ssb/trunk/test/request_test.rb
r2397 r2404 8 8 def request_params 9 9 { 10 ' q'.taint => MockServer.uri.dup.taint,10 'ssb_q'.taint => MockServer.uri.dup.taint, 11 11 'p1'.taint => 'foo'.taint, 12 12 'p2'.taint => 'bar'.taint, -
lang/ruby/ssb/trunk/test/ssb_test.rb
r2252 r2404 49 49 50 50 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") 52 52 assert_match(/It works by GET/, ret) 53 53 end … … 55 55 test 'ssb get invalidhost' do 56 56 # noname is invalid hostname 57 ret = kick_ssb('GET', ' q=noname')57 ret = kick_ssb('GET', 'ssb_q=noname') 58 58 exp = Regexp.union( 59 59 /getaddrinfo: Name or service not known/, … … 63 63 64 64 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") 66 66 assert_match(/It works by POST/, ret) 67 67 end … … 69 69 test 'ssb post invalidhost' do 70 70 # noname is invalid hostname 71 ret = kick_ssb('POST', '', ' q=noname¶m=test&uid=NULLGWDOCOMO')71 ret = kick_ssb('POST', '', 'ssb_q=noname¶m=test&uid=NULLGWDOCOMO') 72 72 assert_match(/getaddrinfo: (?:nodename nor servname provided|Name or service not known)/, ret) 73 73 end
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)