Author: kclark
Date: Tue Jun 17 18:05:32 2008
New Revision: 668943
URL: http://svn.apache.org/viewvc?rev=668943&view=rev
Log:
Add pending spec for sequence-ids on Thrift::Client
Modified:
incubator/thrift/trunk/lib/rb/spec/client_spec.rb
Modified: incubator/thrift/trunk/lib/rb/spec/client_spec.rb
URL:
http://svn.apache.org/viewvc/incubator/thrift/trunk/lib/rb/spec/client_spec.rb?rev=668943&r1=668942&r2=668943&view=diff
==============================================================================
--- incubator/thrift/trunk/lib/rb/spec/client_spec.rb (original)
+++ incubator/thrift/trunk/lib/rb/spec/client_spec.rb Tue Jun 17 18:05:32 2008
@@ -34,6 +34,19 @@
@client.send_message('testMessage', klass, :foo => 'foo', :bar => 42)
end
+ it "should increment the sequence id when sending messages" do
+ pending "it seems sequence ids are completely ignored right now" do
+ @prot.should_receive(:write_message_begin).with('testMessage',
MessageTypes::CALL, 0).ordered
+ @prot.should_receive(:write_message_begin).with('testMessage2',
MessageTypes::CALL, 1).ordered
+ @prot.should_receive(:write_message_begin).with('testMessage3',
MessageTypes::CALL, 2).ordered
+ @prot.stub!(:write_message_end)
+ @prot.stub!(:trans).and_return stub_everything("trans")
+ @client.send_message('testMessage', stub_everything("args class"))
+ @client.send_message('testMessage2', stub_everything("args class"))
+ @client.send_message('testMessage3', stub_everything("args class"))
+ end
+ end
+
it "should receive a test message" do
@prot.should_receive(:read_message_begin).and_return [nil,
MessageTypes::CALL, 0]
@prot.should_receive(:read_message_end)