# File test/bin/test_grep.rb, line 27 def teardown if @tempfile @tempfile.close end # 出力メソッドのデフォルトの出力先を戻す。 $stdout = STDOUT #puts @string_io.string end