Pass correct config object to runner tree
This commit is contained in:
parent
2c6934f146
commit
3c753c9dad
2 changed files with 2 additions and 2 deletions
|
@ -59,7 +59,7 @@ module Mutant
|
|||
strategy = self.strategy
|
||||
strategy.setup
|
||||
@subjects = config.subjects.map do |subject|
|
||||
Subject.run(self, subject)
|
||||
Subject.run(config, subject)
|
||||
end
|
||||
strategy.teardown
|
||||
end
|
||||
|
|
|
@ -32,7 +32,7 @@ describe Mutant::Runner::Config, '#subjects' do
|
|||
stub_const('Mutant::Runner::Subject', DummySubjectRunner)
|
||||
end
|
||||
|
||||
it { should eql([DummySubjectRunner.new(object, mutation_subject)]) }
|
||||
it { should eql([DummySubjectRunner.new(config, mutation_subject)]) }
|
||||
|
||||
it_should_behave_like 'an idempotent method'
|
||||
end
|
||||
|
|
Loading…
Add table
Reference in a new issue