diff options
author | Rafael H. Schloming <rhs@apache.org> | 2006-09-29 14:54:37 +0000 |
---|---|---|
committer | Rafael H. Schloming <rhs@apache.org> | 2006-09-29 14:54:37 +0000 |
commit | ce57f0694a13529ab6feb8d10a7f4c8935368bb0 (patch) | |
tree | 87dcebe88c2bfc5902804bebc1405d019ffe29f9 /ruby/test.rb | |
parent | 3fedfb514c3d2ce6b9cb02a30465b6bfd3a37cf2 (diff) | |
download | qpid-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.rb | 12 |
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"}) |