summaryrefslogtreecommitdiff
path: root/ruby/test.rb
diff options
context:
space:
mode:
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"})