Skip to content

Commit

Permalink
Accept colon-style hash in test assertion (#732)
Browse files Browse the repository at this point in the history
Hash#inspect is proposed to change to {key: value, non_symbol_key => value} in https://bugs.ruby-lang.org/issues/20433#note-10
  • Loading branch information
tompng authored Aug 5, 2024
1 parent 0796dcd commit 1fd73b3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/reline/test_reline.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 1fd73b3

Please sign in to comment.