Skip to content

Commit

Permalink
Add detailed message to assert_external_string_equal
Browse files Browse the repository at this point in the history
  • Loading branch information
aycabta committed Jun 25, 2021
1 parent c3b4c6e commit bb6f408
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/reline/test_history.rb
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,8 @@ def history_new_and_push_history(num)

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
Expand Down

0 comments on commit bb6f408

Please sign in to comment.