Sha256: 3ace56d57d5c0e84bd7c35b121da64447d033405299df707ae4923f9142f6920

Contents?: true

Size: 445 Bytes

Versions: 6

Compression:

Stored size: 445 Bytes

Contents

# encoding: utf-8

# connection_spec.rb

require "bunny"

describe Bunny do

  it "should raise an error if the wrong user name or password is used" do
    b = Bunny.new(:spec => '0.9', :user => 'wrong')
    lambda { b.start}.should raise_error(Bunny::ProtocolError)
  end

  it "should merge custom settings from AMQP URL with default settings" do
    b = Bunny.new("amqp://tagadab", :spec => "0.9")
    b.host.should eql("tagadab")
  end

end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
bunny-0.7.5 spec/spec_09/connection_spec.rb
bunny-0.7.4 spec/spec_09/connection_spec.rb
bunny-0.7.3 spec/spec_09/connection_spec.rb
bunny-0.7.2 spec/spec_09/connection_spec.rb
bunny-0.7.1 spec/spec_09/connection_spec.rb
bunny-0.7 spec/spec_09/connection_spec.rb