lib/mutant/config.rb in mutant-0.3.0.rc1 vs lib/mutant/config.rb in mutant-0.3.0.rc2
- old
+ new
@@ -2,12 +2,18 @@
module Mutant
# The configuration of a mutator run
class Config
include Adamantium::Flat, Anima.new(
- :cache, :debug, :strategy, :matcher, :filter,
- :reporter, :fail_fast, :zombie
+ :cache,
+ :debug,
+ :strategy,
+ :matcher,
+ :subject_predicate,
+ :reporter,
+ :fail_fast,
+ :zombie
)
# Enumerate subjects
#
# @api private
@@ -20,10 +26,10 @@
#
# @api private
#
def subjects(&block)
return to_enum(__method__) unless block_given?
- matcher.each(&block)
+ Matcher::Filter.new(matcher, subject_predicate).each(&block)
self
end
end # Config
end # Mutant