1
0
Fork 0
mirror of https://github.com/jnunemaker/httparty synced 2023-03-27 23:23:07 -04:00

Remove comments in specs

This commit is contained in:
Sandro Turriate 2009-11-19 23:24:26 -05:00
parent acd4406e1d
commit feb66bdc48

View file

@ -363,20 +363,15 @@ describe HTTParty do
end
it "should raise an ArgumentError on URIs that are not http or https" do
# No need to stub since this isn't an HTTP request, and it won't be made
# anyway. (In fact, stubbing keeps the URI from being evaluated and
# breaks the test.)
lambda do
HTTParty.get("file:///there_is_no_party_on/my/filesystem")
end.should raise_error(ArgumentError)
end
it "should raise an InvalidURIError on URIs that can't be parsed at all" do
# Like the previous test, stubbing is not desired.
lambda do
HTTParty.get("It's the one that says 'Bad URI'")
end.should raise_error(URI::InvalidURIError)
end
end
end