Rename Config#matcher_config to #config
This commit is contained in:
parent
4856350901
commit
fac11531a4
7 changed files with 7 additions and 7 deletions
|
@ -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,
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -4,7 +4,7 @@ module Mutant
|
|||
include Adamantium::Flat, Anima::Update, Anima.new(
|
||||
:debug,
|
||||
:integration,
|
||||
:matcher_config,
|
||||
:matcher,
|
||||
:includes,
|
||||
:requires,
|
||||
:reporter,
|
||||
|
|
2
lib/mutant/env/bootstrap.rb
vendored
2
lib/mutant/env/bootstrap.rb
vendored
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
2
spec/unit/mutant/env/boostrap_spec.rb
vendored
2
spec/unit/mutant/env/boostrap_spec.rb
vendored
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue