From 33e5f975dc7690642097267ef926ff8ad06c86b7 Mon Sep 17 00:00:00 2001 From: Zack Hobson Date: Tue, 17 Dec 2013 10:48:46 -0800 Subject: capture_output: make it a generic minitest ext --- test/ext/capture_output.rb | 2 +- test/test_helper.rb | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/test/ext/capture_output.rb b/test/ext/capture_output.rb index 6fef849..a469e21 100644 --- a/test/ext/capture_output.rb +++ b/test/ext/capture_output.rb @@ -16,7 +16,7 @@ module CaptureOutput @stdout.string end end -class HCl::TestCase < MiniTest::Unit::TestCase +class MiniTest::Unit::TestCase include CaptureOutput end diff --git a/test/test_helper.rb b/test/test_helper.rb index 42a072c..9067d91 100644 --- a/test/test_helper.rb +++ b/test/test_helper.rb @@ -31,3 +31,5 @@ require 'fakeweb' # require test extensions/helpers Dir[File.dirname(__FILE__) + '/ext/*.rb'].each { |ext| require ext } +class HCl::TestCase < MiniTest::Unit::TestCase; end + -- cgit v1.2.3