Add full rspec strategy

This commit is contained in:
Markus Schirp 2012-11-22 00:14:13 +01:00
parent f3cb1bda68
commit 707163f263
2 changed files with 8 additions and 1 deletions

View file

@ -90,6 +90,7 @@ module Mutant
'--require' => [:require_library ],
#'--killer-fork' => [:enable_killer_fork ],
'--rspec-unit' => [:set_strategy, Strategy::Rspec::Unit ],
'--rspec-full' => [:set_strategy, Strategy::Rspec::Full ],
'--rspec-dm2' => [:set_strategy, Strategy::Rspec::DM2 ]
}.deep_freeze

View file

@ -37,7 +37,13 @@ module Mutant
class Unit < self
def self.filename_pattern(mutation)
'spec/unit/**/*.rb'
'spec/unit/**/*_spec.rb'
end
end
class Full < self
def self.filename_pattern(mutation)
'spec/**/*_spec.rb'
end
end
end