Class: FileFormatter

Inherits:
DottedFormatter show all
Defined in:
lib/extensions/mspec/mspec/runner/formatters/file.rb

Instance Attribute Summary

Attributes inherited from DottedFormatter

#exceptions, #tally, #timer

Instance Method Summary collapse

Methods inherited from DottedFormatter

#abort, #after, #before, #exception, #exception?, #failure?, #finish, #initialize, #print

Constructor Details

This class inherits a constructor from DottedFormatter

Instance Method Details

#registerObject

Unregisters DottedFormatter#before, #after methods and registers #load, #unload, which perform the same duties as #before, #after in DottedFormatter.



7
8
9
10
11
12
13
14
15
# File 'lib/extensions/mspec/mspec/runner/formatters/file.rb', line 7

def register
  super

  MSpec.unregister :before,    self
  MSpec.unregister :after,     self

  MSpec.register   :load,      self
  MSpec.register   :unload,    self
end