Class: TurboTest::RSpec::ConfigurationOptions

Inherits:
RSpec::Core::ConfigurationOptions
  • Object
show all
Defined in:
lib/turbo_test/rspec/job.rb

Instance Method Summary collapse

Constructor Details

#initialize(arguments, packer:) ⇒ ConfigurationOptions

Returns a new instance of ConfigurationOptions.



30
31
32
33
34
# File 'lib/turbo_test/rspec/job.rb', line 30

def initialize(arguments, packer:)
  super(arguments)
  
  @packer = packer
end

Instance Method Details

#configure(config) ⇒ Object



36
37
38
39
40
# File 'lib/turbo_test/rspec/job.rb', line 36

def configure(config)
  super(config)
  
  config.add_formatter(ExampleFormatter.new(@packer))
end

#load_formatters_into(config) ⇒ Object



42
43
44
# File 'lib/turbo_test/rspec/job.rb', line 42

def load_formatters_into(config)
  # Don't load any formatters, default or otherwise.
end