summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorsorah <sorah@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-02-22 09:47:24 +0000
committersorah <sorah@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-02-22 09:47:24 +0000
commitc0ec3efcae87aab655738ff7fa2ea16986b9ef84 (patch)
treea9c3f37c1c6e5bc5a6df9f68f1a0294beb8c950b /test
parentb67bc8d722e9351b34e68ac77d397aead29961cc (diff)
* lib/test/unit.rb (setup_options): add option "--show-skip" to
cancel "--hide-skip" (-q) git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34740 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r--test/testunit/test_hideskip.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/testunit/test_hideskip.rb b/test/testunit/test_hideskip.rb
index 967ecafba9..7fc04ae7eb 100644
--- a/test/testunit/test_hideskip.rb
+++ b/test/testunit/test_hideskip.rb
@@ -11,6 +11,13 @@ class TestHideSkip < Test::Unit::TestCase
test_out, o = IO.pipe
spawn(*@options[:ruby], "#{File.dirname(__FILE__)}/test4test_hideskip.rb",
+ "--show-skip", out: o, err: o)
+ o.close
+ assert_match(/assertions\/s.\n\n 1\) Skipped/,test_out.read)
+ test_out.close
+
+ test_out, o = IO.pipe
+ spawn(*@options[:ruby], "#{File.dirname(__FILE__)}/test4test_hideskip.rb",
"--hide-skip", out: o, err: o)
o.close
assert_match(/assertions\/s.\n\n1 tests, 0 assertions, 0 failures, 0 errors, 1 skips/,