Backport MiniTest assert_output for Ruby 1.8