Skip to content

Commit

Permalink
Use TestServlet.url instead of external connectivity (#448)
Browse files Browse the repository at this point in the history
This test covers http verb conversion to string, which is not specifically related to any service.

This also include fix of broken link.
  • Loading branch information
voxik authored Sep 10, 2024
1 parent cb1ead5 commit 19443c3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/tc_curl_easy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1068,13 +1068,13 @@ def test_easy_http_verbs
end

def test_easy_http_verbs_must_respond_to_str
# issue http://github.com/taf2/curb/issues#issue/45
# issue http://github.com/taf2/curb/issues/45
assert_nothing_raised do
c = Curl::Easy.new ; c.url = 'http://example.com' ; c.http(:get)
c = Curl::Easy.new ; c.url = TestServlet.url ; c.http(:get)
end

assert_raise RuntimeError do
c = Curl::Easy.new ; c.url = 'http://example.com' ; c.http(FooNoToS.new)
c = Curl::Easy.new ; c.url = TestServlet.url ; c.http(FooNoToS.new)
end

end
Expand Down

0 comments on commit 19443c3

Please sign in to comment.