Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Accept colon-style hash in test assertion #732

Merged
merged 1 commit into from
Aug 5, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading