Revert "Automatically expand scope of example groups"
This reverts commit e1edf672dc
.
This commit is contained in:
parent
868dd0846c
commit
5ccf128fa2
1 changed files with 7 additions and 2 deletions
|
@ -34,7 +34,7 @@ module Mutant
|
|||
|
||||
reporter = RSpec::Core::Reporter.new
|
||||
|
||||
groups.each do |group|
|
||||
example_groups.each do |group|
|
||||
return true unless group.run(reporter)
|
||||
end
|
||||
|
||||
|
@ -58,7 +58,12 @@ module Mutant
|
|||
# @api private
|
||||
#
|
||||
def example_groups
|
||||
match_prefixes.flat_map { |prefix| find_with(prefix) }.compact.uniq
|
||||
match_prefixes.each do |match_expression|
|
||||
example_groups = find_with(match_expression)
|
||||
return example_groups unless example_groups.empty?
|
||||
end
|
||||
|
||||
nil
|
||||
end
|
||||
|
||||
# Return example groups that match expression
|
||||
|
|
Loading…
Add table
Reference in a new issue