From 6ca3881f518b093c8b21b6a94523151e05a0ecbc Mon Sep 17 00:00:00 2001 From: Kevin Clark Date: Thu, 16 Oct 2008 19:14:47 +0000 Subject: [PATCH] rb: Update HTTPClientSpec for THRIFT-156 git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@705329 13f79535-47bb-0310-9956-ffa450edef68 --- lib/rb/spec/httpclient_spec.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/rb/spec/httpclient_spec.rb b/lib/rb/spec/httpclient_spec.rb index 67fb0697..90549c0a 100644 --- a/lib/rb/spec/httpclient_spec.rb +++ b/lib/rb/spec/httpclient_spec.rb @@ -20,7 +20,8 @@ class ThriftHTTPClientSpec < Spec::ExampleGroup @client.write " frame" Net::HTTP.should_receive(:new).with("my.domain.com", 80).and_return do mock("Net::HTTP").tee do |http| - http.should_receive(:post).with("/path/to/service", "a test frame").and_return([nil, "data"]) + http.should_receive(:use_ssl=).with(false) + http.should_receive(:post).with("/path/to/service", "a test frame", {"Content-Type"=>"application/x-thrift"}).and_return([nil, "data"]) end end @client.flush -- 2.17.1