Permalink
Browse files

added https spec

  • Loading branch information...
1 parent 9c656a6 commit 5d516b1e9e18ae75a8a74396bf3e9923f6c11551 @xianhuazhou committed Dec 20, 2012
Showing with 6 additions and 0 deletions.
  1. +6 −0 spec/http_request_spec.rb
@@ -116,6 +116,12 @@
}.inspect
end
+ it "can work with https" do
+ body = hr.get("https://github.com").body
+ body.should include('Git')
+ body.should include('<!DOCTYPE html>')
+ end
+
it "should work with the post method" do
hr.post(URL + '/get').body.should ==({}.inspect)
hr.post(URL + '/get?&').body.should ==({}.inspect)

0 comments on commit 5d516b1

Please sign in to comment.