You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@thrift.apache.org by kc...@apache.org on 2008/10/16 21:14:50 UTC
svn commit: r705329 - /incubator/thrift/trunk/lib/rb/spec/httpclient_spec.rb
Author: kclark
Date: Thu Oct 16 12:14:47 2008
New Revision: 705329
URL: http://svn.apache.org/viewvc?rev=705329&view=rev
Log:
rb: Update HTTPClientSpec for THRIFT-156
Modified:
incubator/thrift/trunk/lib/rb/spec/httpclient_spec.rb
Modified: incubator/thrift/trunk/lib/rb/spec/httpclient_spec.rb
URL: http://svn.apache.org/viewvc/incubator/thrift/trunk/lib/rb/spec/httpclient_spec.rb?rev=705329&r1=705328&r2=705329&view=diff
==============================================================================
--- incubator/thrift/trunk/lib/rb/spec/httpclient_spec.rb (original)
+++ incubator/thrift/trunk/lib/rb/spec/httpclient_spec.rb Thu Oct 16 12:14:47 2008
@@ -20,7 +20,8 @@
@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