Skip to content

Commit

Permalink
Fixed test_setup_teardown_behavior for mt5. (phiggins)
Browse files Browse the repository at this point in the history
[git-p4: depot-paths = "//src/minitest/dev/": change = 8476]
  • Loading branch information
zenspider committed May 1, 2013
1 parent fcb36a1 commit 54fd398
Showing 1 changed file with 8 additions and 13 deletions.
21 changes: 8 additions & 13 deletions test/minitest/test_minitest_spec.rb
Expand Up @@ -589,7 +589,9 @@ def test_children
end
end

class TestMeta < Minitest::Test
require "minitest/metametameta"

class TestMeta < MetaMetaMetaTestCase
parallelize_me!

def util_structure
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -746,8 +743,6 @@ def xyz; end
end
end

require "minitest/metametameta"

class TestSpecInTestCase < MetaMetaMetaTestCase
def setup
super
Expand Down

0 comments on commit 54fd398

Please sign in to comment.