diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/ruby/test_refinement.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/ruby/test_refinement.rb b/test/ruby/test_refinement.rb index 43f58b1038..b69135f321 100644 --- a/test/ruby/test_refinement.rb +++ b/test/ruby/test_refinement.rb @@ -1495,6 +1495,7 @@ class TestRefinement < Test::Unit::TestCase end def test_reopen_refinement_module + flag = false assert_separately([], <<-"end;") $VERBOSE = nil class C @@ -1521,6 +1522,11 @@ class TestRefinement < Test::Unit::TestCase assert_equal(:bar, C.new.m, "[ruby-core:71423] [Bug #11672]") end; + flag = true + rescue MiniTest::Assertion + skip 'expected to fail' + ensure + raise MiniTest::Assertion, 'this test is expected to fail' if flag end private |