Use positive branching in shared mutatro examples
This commit is contained in:
parent
f0870d0043
commit
20418d0969
1 changed files with 3 additions and 3 deletions
|
@ -72,17 +72,17 @@ shared_examples_for 'a mutator' do
|
|||
|
||||
message = []
|
||||
|
||||
unless missing.empty?
|
||||
if missing.any?
|
||||
message << 'Missing mutations (%i):' % missing.length
|
||||
message.concat(missing)
|
||||
end
|
||||
|
||||
unless unexpected.empty?
|
||||
if unexpected.any?
|
||||
message << 'Unexpected mutations (%i):' % unexpected.length
|
||||
message.concat(unexpected)
|
||||
end
|
||||
|
||||
fail message.join("\n-----\n") unless missing.empty? and unexpected.empty?
|
||||
fail message.join("\n-----\n") if messages.any?
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Reference in a new issue