# File test/bin/test_grep.rb, line 17 def setup @obj = GrepApp.new # 出力メソッドのデフォルトの出力先を置き換え @string_io = StringIO.new $stdout = @string_io @tempfile = nil end