summaryrefslogtreecommitdiff
path: root/test/testunit
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-05-07 18:54:09 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-05-07 18:54:09 +0000
commitfca2ac964df30d102ff516ac5f58f42d3ee241fb (patch)
treeb664b0425ea9a1ea54cd1ee3b08acced3e155774 /test/testunit
parentec76e156feeb28b59de8fdc40ff0c40d6d44a378 (diff)
test/testunit: fix for recent minitest
* test/testunit/test_hideskip.rb (TestHideSkip#test_hideskip): MiniTest#puke now reports Skipped messages only if verbose mode. * test/testunit/test_sorting.rb (TestTestUnitSorting#test_sorting): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35577 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/testunit')
-rw-r--r--test/testunit/test_hideskip.rb6
-rw-r--r--test/testunit/test_sorting.rb2
2 files changed, 4 insertions, 4 deletions
diff --git a/test/testunit/test_hideskip.rb b/test/testunit/test_hideskip.rb
index 7fc04ae..6104fb6 100644
--- a/test/testunit/test_hideskip.rb
+++ b/test/testunit/test_hideskip.rb
@@ -4,21 +4,21 @@ class TestHideSkip < Test::Unit::TestCase
def test_hideskip
test_out, o = IO.pipe
spawn(*@options[:ruby], "#{File.dirname(__FILE__)}/test4test_hideskip.rb",
- out: o, err: o)
+ "--verbose", 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",
- "--show-skip", out: o, err: o)
+ "--verbose", "--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)
+ "--verbose", "--hide-skip", out: o, err: o)
o.close
assert_match(/assertions\/s.\n\n1 tests, 0 assertions, 0 failures, 0 errors, 1 skips/,
test_out.read)
diff --git a/test/testunit/test_sorting.rb b/test/testunit/test_sorting.rb
index ca85db5..77374f6 100644
--- a/test/testunit/test_sorting.rb
+++ b/test/testunit/test_sorting.rb
@@ -4,7 +4,7 @@ class TestTestUnitSorting < Test::Unit::TestCase
def test_sorting
test_out, o = IO.pipe
spawn(*@options[:ruby], "#{File.dirname(__FILE__)}/test4test_sorting.rb",
- out: o, err: o)
+ "--verbose", out: o, err: o)
o.close
result = test_out.read