Consistent comments

This commit is contained in:
Michael Miller 2020-12-23 14:17:05 -07:00
parent de1af7178c
commit a2ef0fa46a
No known key found for this signature in database
GPG key ID: FB9F12F7C646A4AD

View file

@ -51,13 +51,13 @@ module Spectator::Matchers
end end
if missing.empty? if missing.empty?
# Contents are identical. # Contents are present.
FailedMatchData.new(description, "#{actual.label} contains #{expected.label}", FailedMatchData.new(description, "#{actual.label} contains #{expected.label}",
expected: "Not #{expected.value.inspect}", expected: "Not #{expected.value.inspect}",
actual: actual_value.inspect actual: actual_value.inspect
) )
else else
# Content differs. # Content is missing.
SuccessfulMatchData.new(description) SuccessfulMatchData.new(description)
end end
end end