From 04047a25c6813fca28da27439d901f6977e618e2 Mon Sep 17 00:00:00 2001 From: "Rafael H. Schloming" Date: Tue, 23 Jun 2009 13:04:20 +0000 Subject: renamed the type field of structs to st_type so it won't conflict with struct fields git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@787663 13f79535-47bb-0310-9956-ffa450edef68 --- ruby/tests/connection.rb | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'ruby/tests') diff --git a/ruby/tests/connection.rb b/ruby/tests/connection.rb index ab892d8e53..c2a851ec0a 100644 --- a/ruby/tests/connection.rb +++ b/ruby/tests/connection.rb @@ -49,7 +49,7 @@ class MockSession < Qpid::Session::Delegate end def queue_query(qq) - return qq.type.result.create(qq.queue) + return qq.st_type.result.create(qq.queue) end def message_transfer(cmd, headers, body) @@ -64,6 +64,10 @@ class MockSession < Qpid::Session::Delegate @queue.put([cmd, headers, body]) end end + + def exchange_declare(ed) + # do nothing + end end class TestConnectionTest < Test::Unit::TestCase @@ -232,4 +236,11 @@ class TestConnectionTest < Test::Unit::TestCase :message => Qpid::Message.new("test")) s.sync(10) end + + def test_exchange_declare + c = connect + c.start(10) + s = c.session("test") + s.exchange_declare("test-exchange") + end end -- cgit v1.2.1