diff options
| author | tomoya ishida <tomoyapenguin@gmail.com> | 2024-08-06 00:53:40 +0900 |
|---|---|---|
| committer | git <svn-admin@ruby-lang.org> | 2024-08-05 15:53:45 +0000 |
| commit | dbd36e1c23603df207b3d096f473a98c3cdddfff (patch) | |
| tree | 28df9290cf006b4c90169713ae660199f489e8cd /test | |
| parent | 9d86864a6d06a9534dfc8cb55be6c6fcee3ee4a2 (diff) | |
[ruby/reline] Accept colon-style hash in test assertion
(https://github.com/ruby/reline/pull/732)
Hash#inspect is proposed to change to {key: value, non_symbol_key => value} in https://bugs.ruby-lang.org/issues/20433#note-10
https://github.com/ruby/reline/commit/1fd73b358a
Diffstat (limited to 'test')
| -rw-r--r-- | test/reline/test_reline.rb | 4 |
1 files changed, 2 insertions, 2 deletions
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 @@ class Reline::Test < Reline::TestCase 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 @@ class Reline::Test < Reline::TestCase 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 |
