Permalink
Browse files

Update test descriptions to reflect intent of 6b2075f

Also, use more concise matchers.
  • Loading branch information...
1 parent 2d47f83 commit 09f3d38b4d407c9d61296b2c13dff30877470459 @chrisk committed May 15, 2013
Showing with 4 additions and 4 deletions.
  1. +4 −4 test/test_fake_web.rb
View
@@ -354,16 +354,16 @@ def test_register_unimplemented_response
end
end
- def test_specifying_nil_for_body
+ def test_specifying_nil_for_body_triggers_net_http_behavior_of_nil_body
FakeWeb.register_uri(:head, "http://example.com", :body => nil)
response = Net::HTTP.start("example.com") { |query| query.head("/") }
- assert_equal nil, response.body
+ assert_nil response.body
end
- def test_specifying_empty_string_for_body
+ def test_specifying_empty_string_for_body_triggers_net_http_behavior_of_nil_body
FakeWeb.register_uri(:head, "http://example.com", :body => '')
response = Net::HTTP.start("example.com") { |query| query.head("/") }
- assert_equal nil, response.body
+ assert_nil response.body
end
def test_real_http_request

0 comments on commit 09f3d38

Please sign in to comment.