Rename Config#matcher_config to #config

This commit is contained in:
Markus Schirp 2014-12-22 18:27:12 +00:00
parent 4856350901
commit fac11531a4
7 changed files with 7 additions and 7 deletions

View file

@ -231,7 +231,7 @@ module Mutant
debug: false,
fail_fast: false,
integration: Integration::Null.new,
matcher_config: Matcher::Config::DEFAULT,
matcher: Matcher::Config::DEFAULT,
includes: EMPTY_ARRAY,
requires: EMPTY_ARRAY,
isolation: Mutant::Isolation::Fork,

View file

@ -235,7 +235,7 @@ module Mutant
# @api private
#
def add_matcher(attribute, value)
update(matcher_config: config.matcher_config.add(attribute, value))
update(matcher: config.matcher.add(attribute, value))
end
end # CLI

View file

@ -4,7 +4,7 @@ module Mutant
include Adamantium::Flat, Anima::Update, Anima.new(
:debug,
:integration,
:matcher_config,
:matcher,
:includes,
:requires,
:reporter,

View file

@ -135,7 +135,7 @@ module Mutant
# @api private
#
def matched_subjects
Matcher::Compiler.call(self, config.matcher_config).to_a
Matcher::Compiler.call(self, config.matcher).to_a
end
# Initialize matchable scopes

View file

@ -201,7 +201,7 @@ module Mutant
#
def run
info 'Mutant configuration:'
info 'Matcher: %s', object.matcher_config.inspect
info 'Matcher: %s', object.matcher.inspect
info 'Integration: %s', object.integration.name
info 'Expect Coverage: %0.2f%%', object.expected_coverage.inspect
info 'Jobs: %d', object.jobs

View file

@ -9,7 +9,7 @@ end
RSpec.shared_examples_for 'a cli parser' do
it { expect(subject.config.integration).to eql(expected_integration) }
it { expect(subject.config.reporter).to eql(expected_reporter) }
it { expect(subject.config.matcher_config).to eql(expected_matcher_config) }
it { expect(subject.config.matcher).to eql(expected_matcher_config) }
end
RSpec.describe Mutant::CLI do

View file

@ -5,7 +5,7 @@ RSpec.describe Mutant::Env::Bootstrap do
reporter: Mutant::Reporter::Trace.new,
includes: [],
requires: [],
matcher_config: Mutant::Matcher::Config::DEFAULT
matcher: Mutant::Matcher::Config::DEFAULT
)
end