Pass correct config object to runner tree

This commit is contained in:
Markus Schirp 2013-07-13 01:54:16 +02:00
parent 2c6934f146
commit 3c753c9dad
2 changed files with 2 additions and 2 deletions

View file

@ -59,7 +59,7 @@ module Mutant
strategy = self.strategy strategy = self.strategy
strategy.setup strategy.setup
@subjects = config.subjects.map do |subject| @subjects = config.subjects.map do |subject|
Subject.run(self, subject) Subject.run(config, subject)
end end
strategy.teardown strategy.teardown
end end

View file

@ -32,7 +32,7 @@ describe Mutant::Runner::Config, '#subjects' do
stub_const('Mutant::Runner::Subject', DummySubjectRunner) stub_const('Mutant::Runner::Subject', DummySubjectRunner)
end end
it { should eql([DummySubjectRunner.new(object, mutation_subject)]) } it { should eql([DummySubjectRunner.new(config, mutation_subject)]) }
it_should_behave_like 'an idempotent method' it_should_behave_like 'an idempotent method'
end end