diff options
author | Koichi Sasada <ko1@atdot.net> | 2020-03-02 13:13:24 +0900 |
---|---|---|
committer | Koichi Sasada <ko1@atdot.net> | 2020-03-02 13:14:38 +0900 |
commit | 31c55b672501a843d3db88e7a792f0edbb646607 (patch) | |
tree | 3648e2374c5d8d9625bfca9a1571da85ed4d2741 | |
parent | 5d3b38d69755957ece9f9678ba8a9b8ce9899442 (diff) | |
download | ruby-31c55b672501a843d3db88e7a792f0edbb646607.tar.gz |
need to restore $stdin.
-rw-r--r-- | test/cgi/test_cgi_core.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/cgi/test_cgi_core.rb b/test/cgi/test_cgi_core.rb index 255203dc17..f7adb7e99f 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 |