Class: TestProf::RSpecDissect::Collectors::Before

Inherits:
Base
  • Object
show all
Defined in:
lib/test_prof/rspec_dissect/collectors/before.rb

Instance Attribute Summary

Attributes inherited from Base

#name, #results, #top_count

Instance Method Summary collapse

Methods inherited from Base

#<<, #populate!, #print_group_result, #print_result_header, #print_results, #total_time, #total_time_message

Constructor Details

#initialize(params) ⇒ Before

Returns a new instance of Before.



9
10
11
# File 'lib/test_prof/rspec_dissect/collectors/before.rb', line 9

def initialize(params)
  super(name: :before, **params)
end

Instance Method Details



13
14
15
# File 'lib/test_prof/rspec_dissect/collectors/before.rb', line 13

def print_name
  "before(:each)"
end