Skip to content

Commit

Permalink
Merge branch 'master' of github.com:isaacsanders/httparty
Browse files Browse the repository at this point in the history
Conflicts:
	spec/httparty/ssl_spec.rb
	spec/support/ssl_test_helper.rb
  • Loading branch information
Isaac Sanders committed Apr 16, 2012
2 parents 9d7667f + 5f76a2b commit d51884c
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion spec/support/ssl_test_helper.rb
Expand Up @@ -3,7 +3,17 @@
module HTTParty
module SSLTestHelper
def ssl_verify_test(mode, ca_basename, server_cert_filename)
test_server = nil
options = {
:format => :json,
:timeout => 30,
}

if mode
ca_path = File.expand_path("../../fixtures/ssl/generated/#{ca_basename}", __FILE__)
raise ArgumentError.new("#{ca_path} does not exist") unless File.exist?(ca_path)
options[mode] = ca_path
end

begin
test_server = SSLTestServer.new(
:rsa_key => File.read(File.expand_path("../../fixtures/ssl/generated/server.key", __FILE__)),
Expand Down

0 comments on commit d51884c

Please sign in to comment.