Use positive predicate
This commit is contained in:
parent
ea13af47a3
commit
69dc9e9e0e
1 changed files with 1 additions and 1 deletions
|
@ -20,7 +20,7 @@ module Mutant
|
|||
def run
|
||||
mutation.insert
|
||||
|
||||
unless example_groups.any?
|
||||
if example_groups.empty?
|
||||
$stderr.puts("No rspec example groups found for: #{match_prefixes.join(', ')}")
|
||||
return false
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue