aboutsummaryrefslogtreecommitdiffstats
path: root/spec/mspec/lib/mspec/runner/formatters/profile.rb
blob: 38ef5b12edcf449dda285162b5407b8ff9ff59b2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
require 'mspec/runner/formatters/dotted'
require 'mspec/runner/actions/profile'

class ProfileFormatter < DottedFormatter
  def initialize(out = nil)
    super(out)

    @describe_name = nil
    @describe_time = nil
    @describes = []
    @its = []
  end

  def register
    (@profile = ProfileAction.new).register
    super
  end
end