Class: Mutant::Strategy::Rspec
- Inherits:
-
Mutant::Strategy
- Object
- Mutant::Strategy
- Mutant::Strategy::Rspec
- Defined in:
- lib/mutant/strategy/rspec.rb
Overview
Rspec killer strategy
Constant Summary collapse
- KILLER =
Killer::Forking.new(Killer::Rspec)
Instance Method Summary collapse
-
#configuration ⇒ RSpec::Core::Configuration
private
Return configuration.
-
#example_groups ⇒ Enumerable<RSpec::Core::ExampleGroup>
private
Return example groups.
-
#setup ⇒ self
private
Setup rspec strategy.
Methods inherited from Mutant::Strategy
Instance Method Details
#configuration ⇒ RSpec::Core::Configuration
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Return configuration
33 34 35 |
# File 'lib/mutant/strategy/rspec.rb', line 33 def configuration RSpec::Core::Configuration.new end |
#example_groups ⇒ Enumerable<RSpec::Core::ExampleGroup>
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Return example groups
44 45 46 |
# File 'lib/mutant/strategy/rspec.rb', line 44 def example_groups world.example_groups end |
#setup ⇒ self
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Setup rspec strategy
17 18 19 20 21 22 23 24 |
# File 'lib/mutant/strategy/rspec.rb', line 17 def setup output = StringIO.new configuration.error_stream = output configuration.output_stream = output .configure(configuration) configuration.load_spec_files self end |