Skip to content

Commit

Permalink
- Updated tests to work with new minitest output and methods
Browse files Browse the repository at this point in the history
[git-p4: depot-paths = "//src/minitest_tu_shim/dev/": change = 5822]
  • Loading branch information
zenspider committed Aug 21, 2010
1 parent a7b4752 commit 4b5a37a
Showing 1 changed file with 20 additions and 8 deletions.
28 changes: 20 additions & 8 deletions test/test_mini_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,9 @@ def test_failure

@tu.run

expected = "Loaded suite blah
expected = "Test run options:
Loaded suite blah
Started
F.
Finished in 0.00
Expand Down Expand Up @@ -168,7 +170,9 @@ def test_error

@tu.run

expected = "Loaded suite blah
expected = "Test run options:
Loaded suite blah
Started
E.
Finished in 0.00
Expand Down Expand Up @@ -200,7 +204,9 @@ def teardown

@tu.run

expected = "Loaded suite blah
expected = "Test run options:
Loaded suite blah
Started
E
Finished in 0.00
Expand Down Expand Up @@ -236,7 +242,9 @@ def test_skip

@tu.run

expected = "Loaded suite blah
expected = "Test run options:
Loaded suite blah
Started
S.
Finished in 0.00
Expand All @@ -253,7 +261,9 @@ def test_skip
end

def util_assert_report expected = nil
expected ||= "Loaded suite blah
expected ||= "Test run options:
Loaded suite blah
Started
.
Finished in 0.00
Expand Down Expand Up @@ -344,9 +354,11 @@ def test_class_asserts_match_refutes
methods = MiniTest::Assertions.public_instance_methods
methods.map! { |m| m.to_s } if Symbol === methods.first

ignores = %w(assert_block assert_no_match assert_not_equal assert_not_nil
assert_not_same assert_nothing_thrown assert_raise
assert_nothing_raised assert_raises assert_throws assert_send)
ignores = %w(assert_block assert_no_match assert_not_equal
assert_not_nil assert_not_same assert_nothing_thrown
assert_output assert_raise assert_nothing_raised
assert_raises assert_throws assert_send
assert_silent)
asserts = methods.grep(/^assert/).sort - ignores
refutes = methods.grep(/^refute/).sort - ignores

Expand Down

0 comments on commit 4b5a37a

Please sign in to comment.