Skip to content

Commit 628ed9c

Browse files
Merge pull request #19 from jrectenwald/fix-warning-test-nil
add assert_nil to tests following deprecation warning
2 parents 1a3f16a + fa53cf6 commit 628ed9c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/test_ruby_http_client.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ def test_build_request_get_application_json
120120
)
121121
client.build_request('get', nil)
122122
assert_equal('application/json', client.request['Content-Type'])
123-
assert_equal(nil, client.request.body)
123+
assert_nil(client.request.body)
124124
end
125125

126126
def test_build_request_post_empty_body
@@ -134,7 +134,7 @@ def test_build_request_post_empty_body
134134
)
135135
client.build_request('post', nil)
136136
assert_equal('', client.request['Content-Type'])
137-
assert_equal(nil, client.request.body)
137+
assert_nil(client.request.body)
138138
end
139139

140140
def test_build_request_post_multipart

0 commit comments

Comments
 (0)