Skip to content

Commit

Permalink
skipping test_backtrace_tweaking if Test::Unit::TestResult is not def…
Browse files Browse the repository at this point in the history
…ined

Ruby 1.9.1's bundled test/unit, which is only a "test/unit compatibility
layer using minitest" does not include Test::Unit::TestResult, so this
can be skipped.

The skipping-message looks quite ugly, though.
  • Loading branch information
Andreas Haller committed Mar 24, 2009
1 parent 6d86e58 commit f52c045
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions spec/rr/test_unit/test_unit_backtrace_test.rb
Expand Up @@ -15,6 +15,7 @@ def test_trim_backtrace_is_set
end

def test_backtrace_tweaking
skip "Skipped, because there is no Test::Unit::TestResult in this Test::Unit. Don't worry, this is totally fine." unless defined?(Test::Unit::TestResult)
old_result = @_result
result = Test::Unit::TestResult.new

Expand Down

0 comments on commit f52c045

Please sign in to comment.