Class: Minitest::Heat::Configuration
- Inherits:
-
Object
- Object
- Minitest::Heat::Configuration
- Defined in:
- lib/minitest/heat/configuration.rb
Overview
For managing configuration options on how Minitest Heat should handle results
Constant Summary collapse
- DEFAULTS =
{ slow_threshold: 1.0, painfully_slow_threshold: 3.0 }.freeze
Instance Attribute Summary collapse
-
#painfully_slow_threshold ⇒ Object
Returns the value of attribute painfully_slow_threshold.
-
#slow_threshold ⇒ Object
Returns the value of attribute slow_threshold.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
17 18 19 20 |
# File 'lib/minitest/heat/configuration.rb', line 17 def initialize @slow_threshold = DEFAULTS[:slow_threshold] @painfully_slow_threshold = DEFAULTS[:painfully_slow_threshold] end |
Instance Attribute Details
#painfully_slow_threshold ⇒ Object
Returns the value of attribute painfully_slow_threshold.
14 15 16 |
# File 'lib/minitest/heat/configuration.rb', line 14 def painfully_slow_threshold @painfully_slow_threshold end |
#slow_threshold ⇒ Object
Returns the value of attribute slow_threshold.
14 15 16 |
# File 'lib/minitest/heat/configuration.rb', line 14 def slow_threshold @slow_threshold end |