diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-02-05 04:45:10 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-02-05 04:45:10 +0000 |
commit | e274713574921d80903150fc4a67912474955d33 (patch) | |
tree | 7c181e75f3b15ec326c961cc87b18c87438ee278 /test/lib/test | |
parent | a007b9a1f9eeb65ad03524be64ac133a0abd4029 (diff) | |
download | ruby-e274713574921d80903150fc4a67912474955d33.tar.gz |
incompatible encoding workaround
* test/lib/minitest/unit.rb (puke): workaround incompatible
encoding error messages.
* test/lib/test/unit/assertions.rb (AllFailures.message): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53743 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/lib/test')
-rw-r--r-- | test/lib/test/unit/assertions.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/lib/test/unit/assertions.rb b/test/lib/test/unit/assertions.rb index cdd188478f..41463ea61b 100644 --- a/test/lib/test/unit/assertions.rb +++ b/test/lib/test/unit/assertions.rb @@ -801,7 +801,7 @@ eom total = @count.to_s fmt = "%#{total.size}d" @failures.map {|k, (n, v)| - "\n#{i+=1}. [#{fmt%n}/#{total}] Assertion for #{k.inspect}\n#{v.message.gsub(/^/, ' | ')}" + "\n#{i+=1}. [#{fmt%n}/#{total}] Assertion for #{k.inspect}\n#{v.message.b.gsub(/^/, ' | ')}" }.join("\n") end |