Sha256: fde2067a2e61d589c162b7b80365d1bcd2ebede9e372bb75a18d22e509f8987f
Contents?: true
Size: 558 Bytes
Versions: 2
Compression:
Stored size: 558 Bytes
Contents
require 'test/unit' module TestBelt::TestUnit class TestSkipped < Exception; end end module Test::Unit class TestCase alias_method(:orig_add_error, :add_error) def add_error(*args, &block) unless args.first.kind_of?(::TestBelt::TestUnit::TestSkipped) orig_add_error *args, &block end end def skip(halt_test=true) if defined? ::LeftRight ::LeftRight.state.skip = true ::LeftRight.state.skipped_count += 1 end raise ::TestBelt::TestUnit::TestSkipped if halt_test end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
test-belt-0.2.1 | lib/test_belt/test_unit/test_case.rb |
test-belt-0.2.0 | lib/test_belt/test_unit/test_case.rb |