blob: 6db72af4ffc2b1aa4d80c4139352b72286ee1d7a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
require 'mspec/runner/formatters/dotted'
class FileFormatter < DottedFormatter
# Unregisters DottedFormatter#before, #after methods and
# registers #load, #unload, which perform the same duties
# as #before, #after in DottedFormatter.
def register
super
MSpec.unregister :before, self
MSpec.unregister :after, self
MSpec.register :load, self
MSpec.register :unload, self
end
alias_method :load, :before
alias_method :unload, :after
end
|