~ubuntu-branches/ubuntu/quantal/ruby1.9.1/quantal

« back to all changes in this revision

Viewing changes to test/testunit/test_hideskip.rb

  • Committer: Bazaar Package Importer
  • Author(s): Lucas Nussbaum
  • Date: 2011-09-24 19:16:17 UTC
  • mfrom: (1.1.8 upstream) (13.1.7 experimental)
  • Revision ID: james.westby@ubuntu.com-20110924191617-o1qz4rcmqjot8zuy
Tags: 1.9.3~rc1-1
* New upstream release: 1.9.3 RC1.
  + Includes load.c fixes. Closes: #639959.
* Upload to unstable.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
require 'test/unit'
 
2
 
 
3
class TestHideSkip < Test::Unit::TestCase
 
4
  def test_hideskip
 
5
    test_out, o = IO.pipe
 
6
    spawn(*@options[:ruby], "#{File.dirname(__FILE__)}/test4test_hideskip.rb",
 
7
          out: o, err: o)
 
8
    o.close
 
9
    assert_match(/assertions\/s.\n\n  1\) Skipped/,test_out.read)
 
10
    test_out.close
 
11
 
 
12
    test_out, o = IO.pipe
 
13
    spawn(*@options[:ruby], "#{File.dirname(__FILE__)}/test4test_hideskip.rb",
 
14
          "--hide-skip", out: o, err: o)
 
15
    o.close
 
16
    assert_match(/assertions\/s.\n\n1 tests, 0 assertions, 0 failures, 0 errors, 1 skips/,
 
17
                 test_out.read)
 
18
    test_out.close
 
19
  end
 
20
end