Permalink
Browse files

Correct reset test to test both the stub reset? helper, and utilise t…

…he stub in a sane way
  • Loading branch information...
raggi committed Oct 13, 2010
1 parent 665ab4b commit 9d55d1abd13df3b327b7d4d5152dd715e0fd2046
Showing with 2 additions and 0 deletions.
  1. +2 −0 test/test_net_http_persistent.rb
@@ -333,12 +333,14 @@ def test_proxy_from_env_nil
def test_reset
c = basic_connection
+ c.start
reqs[c.object_id] = 5
@http.reset c
assert c.started?
assert c.finished?
+ assert c.reset?
assert_nil reqs[c.object_id]
end

0 comments on commit 9d55d1a

Please sign in to comment.