Class: Rspec::Rotten::Configuration

Inherits:
Object
  • Object
show all
Includes:
Singleton
Defined in:
lib/rspec/rotten/configuration.rb

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.results_fileObject

Returns the value of attribute results_file.



9
10
11
# File 'lib/rspec/rotten/configuration.rb', line 9

def results_file
  @results_file
end

.time_to_rottenObject

Returns the value of attribute time_to_rotten.



9
10
11
# File 'lib/rspec/rotten/configuration.rb', line 9

def time_to_rotten
  @time_to_rotten
end

Class Method Details

.configure {|_self| ... } ⇒ Object

Yields:

  • (_self)

Yield Parameters:



11
12
13
# File 'lib/rspec/rotten/configuration.rb', line 11

def configure
  yield self
end

.register_formatterObject



15
16
17
18
19
# File 'lib/rspec/rotten/configuration.rb', line 15

def register_formatter
  RSpec.configure do |config|
    config.add_formatter(Rspec::Rotten::Formatters::RottenReportFormatter)
  end
end