Skip to content

Instantly share code, notes, and snippets.

@bkabrda
Created March 7, 2012 08:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bkabrda/1991918 to your computer and use it in GitHub Desktop.
Save bkabrda/1991918 to your computer and use it in GitHub Desktop.
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