Class: Minitest::NoAssertions::Reporter
- Inherits:
-
StatisticsReporter
- Object
- StatisticsReporter
- Minitest::NoAssertions::Reporter
- Defined in:
- lib/minitest/no_assertions.rb
Instance Method Summary collapse
-
#initialize(io = $stdout, options = {}) ⇒ Reporter
constructor
A new instance of Reporter.
- #record(result) ⇒ Object
Constructor Details
#initialize(io = $stdout, options = {}) ⇒ Reporter
7 8 9 |
# File 'lib/minitest/no_assertions.rb', line 7 def initialize(io = $stdout, = {}) super(io, ) end |
Instance Method Details
#record(result) ⇒ Object
11 12 13 14 15 16 |
# File 'lib/minitest/no_assertions.rb', line 11 def record(result) if result.assertions.zero? msg = "%s#%s has no assertions!!" % [result.class, result.name] raise StandardError, msg end end |