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 7af5cbb commit 05526eaCopy full SHA for 05526ea
lib/rspec/core/formatters/exception_presenter.rb
@@ -244,12 +244,13 @@ def formatted_message_and_backtrace(colorizer)
244
end
245
246
247
- def encoded_description(description)
248
- return if description.nil?
249
-
250
- if String.method_defined?(:encoding)
+ if String.method_defined?(:encoding)
+ def encoded_description(description)
+ return if description.nil?
251
encoded_string(description)
252
- else # for 1.8.7
+ end
+ else # for 1.8.7
253
254
description
255
256
0 commit comments