Skip to content

Commit

Permalink
Remove comments in specs
Browse files Browse the repository at this point in the history
  • Loading branch information
sandro committed Nov 20, 2009
1 parent acd4406 commit feb66bd
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions spec/httparty_spec.rb
Expand Up @@ -363,20 +363,15 @@ def second_method
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

0 comments on commit feb66bd

Please sign in to comment.