diff --git a/src/spectator/matchers/end_with_matcher.cr b/src/spectator/matchers/end_with_matcher.cr index f555153..319c559 100644 --- a/src/spectator/matchers/end_with_matcher.cr +++ b/src/spectator/matchers/end_with_matcher.cr @@ -77,7 +77,7 @@ module Spectator::Matchers private def negated_match_ends_with(actual_value, actual_label) if actual_value.ends_with?(expected.value) FailedMatchData.new(description, "#{actual_label} ends with #{expected.label} (using #ends_with?)", - expected: expected.value.inspect, + expected: "Not #{expected.value.inspect}", actual: actual_value.inspect ) else @@ -93,7 +93,7 @@ module Spectator::Matchers if expected.value === last FailedMatchData.new(description, "#{actual_label} ends with #{expected.label} (using expected === last)", - expected: expected.value.inspect, + expected: "Not #{expected.value.inspect}", actual: last.inspect, list: list.inspect ) diff --git a/src/spectator/matchers/start_with_matcher.cr b/src/spectator/matchers/start_with_matcher.cr index 02060e7..b459bb4 100644 --- a/src/spectator/matchers/start_with_matcher.cr +++ b/src/spectator/matchers/start_with_matcher.cr @@ -76,7 +76,7 @@ module Spectator::Matchers private def negated_match_starts_with(actual_value, actual_label) if actual_value.starts_with?(expected.value) FailedMatchData.new(description, "#{actual_label} starts with #{expected.label} (using #starts_with?)", - expected: expected.value.inspect, + expected: "Not #{expected.value.inspect}", actual: actual_value.inspect ) else @@ -92,7 +92,7 @@ module Spectator::Matchers if expected.value === first FailedMatchData.new(description, "#{actual_label} starts with #{expected.label} (using expected === first)", - expected: expected.value.inspect, + expected: "Not #{expected.value.inspect}", actual: first.inspect, list: list.inspect )