Skip to content

add assert_nil to tests following deprecation warning #19

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

Merged
merged 1 commit into from
Oct 11, 2017
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/test_ruby_http_client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ def test_build_request_get_application_json
)
client.build_request('get', nil)
assert_equal('application/json', client.request['Content-Type'])
assert_equal(nil, client.request.body)
assert_nil(client.request.body)
end

def test_build_request_post_empty_body
Expand All @@ -134,7 +134,7 @@ def test_build_request_post_empty_body
)
client.build_request('post', nil)
assert_equal('', client.request['Content-Type'])
assert_equal(nil, client.request.body)
assert_nil(client.request.body)
end

def test_build_request_post_multipart
Expand Down