Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed test_setup_teardown_behavior for mt5. (phiggins)

[git-p4: depot-paths = "//src/minitest/dev/": change = 8476]
  • Loading branch information...
commit 54fd39823d00d6f25d6d185b4b95e6b504d2a593 1 parent fcb36a1
@zenspider zenspider authored
Showing with 8 additions and 13 deletions.
  1. +8 −13 test/minitest/test_minitest_spec.rb
View
21 test/minitest/test_minitest_spec.rb
@@ -589,7 +589,9 @@ def test_children
end
end
-class TestMeta < Minitest::Test
+require "minitest/metametameta"
+
+class TestMeta < MetaMetaMetaTestCase
parallelize_me!
def util_structure
@@ -695,20 +697,15 @@ def test_structure
end
def test_setup_teardown_behavior
- skip "not yet"
-
_, _, z, before_list, after_list = util_structure
- @tu = Minitest::Unit.new
- Minitest::Unit.runner = nil # protect the outer runner from the inner tests
+ @tu = z
- with_output do
- tc = z.new :test_0002_anonymous
- tc.run @tu
- end
+ run_tu_with_fresh_reporter
- assert_equal [1, 2, 3], before_list
- assert_equal [3, 2, 1], after_list
+ size = z.runnable_methods.size
+ assert_equal [1, 2, 3] * size, before_list
+ assert_equal [3, 2, 1] * size, after_list
end
def test_describe_first_structure
@@ -746,8 +743,6 @@ def xyz; end
end
end
-require "minitest/metametameta"
-
class TestSpecInTestCase < MetaMetaMetaTestCase
def setup
super
Please sign in to comment.
Something went wrong with that request. Please try again.