Skip to content

Commit

Permalink
Add an assertion message to test of Readline's class variables
Browse files Browse the repository at this point in the history
  • Loading branch information
aycabta committed May 14, 2019
1 parent 1e65196 commit 07e7ae9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/readline/test_readline.rb
Expand Up @@ -293,7 +293,7 @@ def test_some_characters_methods
Readline.send((method_name + "=").to_sym, e)
res = Readline.send(method_name.to_sym)
assert_equal(e, res)
assert_equal(enc, res.encoding)
assert_equal(enc, res.encoding, "Readline.#{method_name} should be #{enc.name}")
end
ensure
Readline.send((method_name + "=").to_sym, saved) if saved
Expand Down

0 comments on commit 07e7ae9

Please sign in to comment.