Skip to content

Commit

Permalink
Avoid teardown assertion check if test is skipped
Browse files Browse the repository at this point in the history
[git-p4: depot-paths = "//src/minitest/dev/": change = 11510]
  • Loading branch information
zenspider committed Jan 27, 2018
1 parent 2362e32 commit 005a3ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/minitest/test_minitest_mock.rb
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,7 @@ def setup

def teardown
super
assert_equal @assertion_count, @tc.assertions
assert_equal @assertion_count, @tc.assertions if self.passed?
end

class Time
Expand Down

0 comments on commit 005a3ba

Please sign in to comment.