mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Add detailed message to assert_external_string_equal
This commit is contained in:
parent
298d65b1e4
commit
557b4eb4aa
1 changed files with 2 additions and 1 deletions
|
@ -292,7 +292,8 @@ class Reline::History::Test < Reline::TestCase
|
|||
|
||||
def assert_external_string_equal(expected, actual)
|
||||
assert_equal(expected, actual)
|
||||
assert_equal(get_default_internal_encoding, actual.encoding)
|
||||
mes = "Encoding of #{actual.inspect} is expected #{get_default_internal_encoding.inspect} but #{actual.encoding}"
|
||||
assert_equal(get_default_internal_encoding, actual.encoding, mes)
|
||||
end
|
||||
|
||||
def get_default_internal_encoding
|
||||
|
|
Loading…
Add table
Reference in a new issue