Class: TestProf::RSpecDissect::Configuration

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

Overview

RSpecDisect configuration

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



38
39
40
41
42
43
# File 'lib/test_prof/rspec_dissect.rb', line 38

def initialize
  @top_count = (ENV['RD_PROF_TOP'] || 5).to_i
  @stamp = ENV['RD_PROF_STAMP']

  RSpecStamp.config.tags = @stamp if stamp?
end

Instance Attribute Details

#top_countObject

Returns the value of attribute top_count.



36
37
38
# File 'lib/test_prof/rspec_dissect.rb', line 36

def top_count
  @top_count
end

Instance Method Details

#stamp?Boolean

Returns:

  • (Boolean)


45
46
47
# File 'lib/test_prof/rspec_dissect.rb', line 45

def stamp?
  !@stamp.nil?
end