We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9e904e7 commit f07f09bCopy full SHA for f07f09b
spec/mspec/lib/mspec/matchers/output.rb
@@ -42,12 +42,12 @@ def failure_message
42
expected_out = "\n"
43
actual_out = "\n"
44
unless @out.nil?
45
- expected_out += " $stdout: #{@out.inspect}\n"
46
- actual_out += " $stdout: #{@stdout.inspect}\n"
+ expected_out += " $stdout: #{MSpec.format(@out)}\n"
+ actual_out += " $stdout: #{MSpec.format(@stdout.to_s)}\n"
47
end
48
unless @err.nil?
49
- expected_out += " $stderr: #{@err.inspect}\n"
50
- actual_out += " $stderr: #{@stderr.inspect}\n"
+ expected_out += " $stderr: #{MSpec.format(@err)}\n"
+ actual_out += " $stderr: #{MSpec.format(@stderr.to_s)}\n"
51
52
["Expected:#{expected_out}", " got:#{actual_out}"]
53
0 commit comments