1
0
Fork 0
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:
Koichi Sasada 2020-03-02 13:13:24 +09:00
parent 5d3b38d697
commit 31c55b6725

View file

@ -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