summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZack Hobson2013-12-17 10:48:46 -0800
committerZack Hobson2013-12-17 10:48:46 -0800
commit33e5f975dc7690642097267ef926ff8ad06c86b7 (patch)
tree3ca402add54162f25a93fd112aae24c49cbbb942
parent6342ba68f15c37fc8fbc219eeeda7675ad29d5fd (diff)
downloadhcl-33e5f975dc7690642097267ef926ff8ad06c86b7.tar.bz2
capture_output: make it a generic minitest ext
-rw-r--r--test/ext/capture_output.rb2
-rw-r--r--test/test_helper.rb2
2 files changed, 3 insertions, 1 deletions
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
+