summaryrefslogtreecommitdiff
path: root/test/cgi
diff options
context:
space:
mode:
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