Class: Busted::Counter
- Inherits:
-
Object
- Object
- Busted::Counter
- Defined in:
- lib/busted/counter.rb
Instance Method Summary collapse
Instance Method Details
#finish ⇒ Object
8 9 10 |
# File 'lib/busted/counter.rb', line 8 def finish @finished = counts end |
#report ⇒ Object
12 13 14 15 16 |
# File 'lib/busted/counter.rb', line 12 def report [:method, :constant].each_with_object({}) do |counter, result| result[counter] = finished[counter] - started[counter] end end |
#start ⇒ Object
4 5 6 |
# File 'lib/busted/counter.rb', line 4 def start @started = counts end |