# encoding: utf-8 # connection_spec.rb require File.expand_path(File.join(File.dirname(__FILE__), %w[.. .. lib bunny])) describe Bunny do it "should raise an error if the wrong user name or password is used" do b = Bunny.new(:user => 'wrong') lambda { b.start}.should raise_error(Bunny::ProtocolError) end end