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:
parent
acd4406e1d
commit
feb66bdc48
1 changed files with 0 additions and 5 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue