summaryrefslogtreecommitdiff
path: root/ruby/test.rb
diff options
context:
space:
mode:
authorRafael H. Schloming <rhs@apache.org>2006-09-29 14:54:37 +0000
committerRafael H. Schloming <rhs@apache.org>2006-09-29 14:54:37 +0000
commitce57f0694a13529ab6feb8d10a7f4c8935368bb0 (patch)
tree87dcebe88c2bfc5902804bebc1405d019ffe29f9 /ruby/test.rb
parent3fedfb514c3d2ce6b9cb02a30465b6bfd3a37cf2 (diff)
downloadqpid-python-ce57f0694a13529ab6feb8d10a7f4c8935368bb0.tar.gz
moved ruby code into a qpid package
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@451317 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'ruby/test.rb')
-rw-r--r--ruby/test.rb12
1 files changed, 10 insertions, 2 deletions
diff --git a/ruby/test.rb b/ruby/test.rb
index d247e333e6..21b56270eb 100644
--- a/ruby/test.rb
+++ b/ruby/test.rb
@@ -14,8 +14,16 @@
# limitations under the License.
#
-require "client"
-require "spec"
+require "qpid/client"
+require "qpid/spec"
+
+def die(msg)
+ puts msg
+ exit(1)
+end
+
+specfile = $*[0]
+die("usage: test.rb <spec file>") if specfile.nil?
c = Qpid::Client.new("0.0.0.0", 5672, Spec.load($*[0]))
c.start({"LOGIN" => "guest", "PASSWORD" => "guest"})