Class: Evilution::Integration::RSpec
- Defined in:
- lib/evilution/integration/rspec.rb
Instance Method Summary collapse
- #call(mutation) ⇒ Object
-
#initialize(test_files: nil) ⇒ RSpec
constructor
A new instance of RSpec.
Constructor Details
#initialize(test_files: nil) ⇒ RSpec
Returns a new instance of RSpec.
12 13 14 15 16 |
# File 'lib/evilution/integration/rspec.rb', line 12 def initialize(test_files: nil) @test_files = test_files @rspec_loaded = false super() end |
Instance Method Details
#call(mutation) ⇒ Object
18 19 20 21 22 23 24 25 26 27 |
# File 'lib/evilution/integration/rspec.rb', line 18 def call(mutation) @original_content = nil @temp_dir = nil @lock_file = nil ensure_rspec_loaded apply_mutation(mutation) run_rspec(mutation) ensure restore_original(mutation) end |