From b58e6651d940fb0d99a95319fa8b0a875be6294c Mon Sep 17 00:00:00 2001 From: Benoit Daloze Date: Thu, 12 Nov 2020 13:07:37 +0100 Subject: [PATCH] Use MSpec.format for the include matcher --- lib/mspec/matchers/include.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/mspec/matchers/include.rb b/lib/mspec/matchers/include.rb index 0b7eaf3c..3f07f355 100644 --- a/lib/mspec/matchers/include.rb +++ b/lib/mspec/matchers/include.rb @@ -15,11 +15,11 @@ def matches?(actual) end def failure_message - ["Expected #{@actual.inspect}", "to include #{@element.inspect}"] + ["Expected #{MSpec.format(@actual)}", "to include #{MSpec.format(@element)}"] end def negative_failure_message - ["Expected #{@actual.inspect}", "not to include #{@element.inspect}"] + ["Expected #{MSpec.format(@actual)}", "not to include #{MSpec.format(@element)}"] end end