mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
need to restore $stdin.
This commit is contained in:
parent
5d3b38d697
commit
31c55b6725
1 changed files with 4 additions and 0 deletions
|
@ -88,6 +88,8 @@ class CGICoreTest < Test::Unit::TestCase
|
|||
## invalid parameter name
|
||||
assert_equal('', cgi['*notfound*'])
|
||||
assert_equal([], cgi.params['*notfound*'])
|
||||
ensure
|
||||
$stdin = STDIN
|
||||
end
|
||||
|
||||
def test_cgi_core_params_encoding_check
|
||||
|
@ -125,6 +127,8 @@ class CGICoreTest < Test::Unit::TestCase
|
|||
else
|
||||
assert(true)
|
||||
end
|
||||
ensure
|
||||
$stdin = STDIN
|
||||
end
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue