summaryrefslogtreecommitdiff
path: root/test/cgi
diff options
context:
space:
mode:
authorKoichi Sasada <ko1@atdot.net>2020-03-02 13:13:24 +0900
committerKoichi Sasada <ko1@atdot.net>2020-03-02 13:14:38 +0900
commit31c55b672501a843d3db88e7a792f0edbb646607 (patch)
tree3648e2374c5d8d9625bfca9a1571da85ed4d2741 /test/cgi
parent5d3b38d69755957ece9f9678ba8a9b8ce9899442 (diff)
need to restore $stdin.
Diffstat (limited to 'test/cgi')
-rw-r--r--test/cgi/test_cgi_core.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/cgi/test_cgi_core.rb b/test/cgi/test_cgi_core.rb
index 255203d..f7adb7e 100644
--- a/test/cgi/test_cgi_core.rb
+++ b/test/cgi/test_cgi_core.rb
@@ -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