Created
March 7, 2012 08:27
-
-
Save bkabrda/1991918 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/spec/httparty/request_spec.rb b/spec/httparty/request_spec.rb | |
index 630ff3b..ad03fe1 100644 | |
--- a/spec/httparty/request_spec.rb | |
+++ b/spec/httparty/request_spec.rb | |
@@ -223,6 +223,8 @@ describe HTTParty::Request do | |
http = mock("http", :null_object => true) | |
http.should_not_receive(:open_timeout=) | |
http.should_not_receive(:read_timeout=) | |
+ http.should_receive(:use_ssl=) | |
+ http.should_receive(:use_ssl?) | |
Net::HTTP.stub(:new => http) | |
request = HTTParty::Request.new(Net::HTTP::Get, 'https://foobar.com', {:timeout => "five seconds"}) | |
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb | |
index 1d64b1d..ad526d1 100644 | |
--- a/spec/spec_helper.rb | |
+++ b/spec/spec_helper.rb | |
@@ -1,7 +1,7 @@ | |
$:.push File.expand_path("../lib", __FILE__) | |
require "httparty" | |
-require 'spec/autorun' | |
+#require 'spec/autorun' | |
require 'fakeweb' | |
def file_fixture(filename) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment