Class: Test::Unit::TestSuite
- Inherits:
-
Object
- Object
- Test::Unit::TestSuite
- Defined in:
- lib/contest.rb
Overview
Test::Unit loads a default test if the suite is empty, whose purpose is to fail. Since having empty contexts is a common practice, we decided to overwrite TestSuite#empty? in order to allow them. Having a failure when no tests have been defined seems counter-intuitive.
Instance Method Summary collapse
Instance Method Details
#empty? ⇒ Boolean
8 9 10 |
# File 'lib/contest.rb', line 8 def empty? false end |