Permalink
Browse files

Spec & standalone example for #66

  • Loading branch information...
1 parent 97ae4bf commit 21447b1c95c73977487f9b6c746b357a5b60f492 @michaelklishin michaelklishin committed May 5, 2011
@@ -0,0 +1,16 @@
+#!/usr/bin/env ruby
+# encoding: utf-8
+
+require "bundler"
+Bundler.setup
+
+$:.unshift(File.expand_path("../../../lib", __FILE__))
+
+require 'amqp'
+
+EventMachine.run do
+ connection = AMQP.connect(:host => '127.0.0.1')
+ connection.disconnect {
+ EventMachine.stop
+ }
+end
@@ -0,0 +1,35 @@
+# -*- coding: utf-8 -*-
+require "spec_helper"
+
+describe "Authentication attempt" do
+
+ #
+ # Environment
+ #
+
+ include EventedSpec::AMQPSpec
+ include EventedSpec::SpecHelper
+
+
+ describe "with default connection parameters" do
+
+ #
+ # Examples
+ #
+
+ # assuming there is an account guest with password of "guest" that has
+ # access to / (default vhost)
+ context "when guest/guest has access to /" do
+ after :all do
+ done
+ end
+
+ it "succeeds" do
+ c = AMQP.connect
+ c.disconnect
+
+ done
+ end # it
+ end # context
+ end # describe
+end # describe "Authentication attempt"

0 comments on commit 21447b1

Please sign in to comment.