diff --git a/test/reline/test_reline.rb b/test/reline/test_reline.rb index f2feab684d..515805467d 100644 --- a/test/reline/test_reline.rb +++ b/test/reline/test_reline.rb @@ -399,7 +399,7 @@ def test_read_eof_returns_input io.close_write io.read end - assert_include(out, '{:result=>"a"}') + assert_include(out, { result: 'a' }.inspect) end def test_read_eof_returns_nil_if_empty @@ -411,7 +411,7 @@ def test_read_eof_returns_nil_if_empty io.close_write io.read end - assert_include(out, '{:result=>nil}') + assert_include(out, { result: nil }.inspect) end def test_require_reline_should_not_trigger_winsize