Sha256: 4f92e897aa26a38cf5ccf60c65f82f48b260ac735e7e7506c1ef59315ad79ff8

Contents?: true

Size: 694 Bytes

Versions: 32

Compression:

Stored size: 694 Bytes

Contents

# encoding: utf-8

require 'spec_helper'
require 'integration/eventmachine/spec_helper'

describe AMQ::Client::EventMachineClient, "queue.declare" do

  #
  # Environment
  #

  include EventedSpec::SpecHelper
  default_timeout 1



  #
  # Examples
  #

  context "when queue name is nil" do
    it "raises ArgumentError" do
      em_amqp_connect do |connection|
        ch = AMQ::Client::Channel.new(connection, 1)
        ch.open do |ch|
          begin
            AMQ::Client::Queue.new(connection, ch, nil)
          rescue ArgumentError => ae
            ae.message.should =~ /queue name must not be nil/

            done
          end
        end
      end
    end
  end # context
end

Version data entries

32 entries across 32 versions & 1 rubygems

Version Path
amq-client-1.0.4 spec/integration/eventmachine/queue_declare_spec.rb
amq-client-1.0.3 spec/integration/eventmachine/queue_declare_spec.rb
amq-client-1.1.0.pre1 spec/integration/eventmachine/queue_declare_spec.rb
amq-client-1.0.2 spec/integration/eventmachine/queue_declare_spec.rb
amq-client-1.0.1 spec/integration/eventmachine/queue_declare_spec.rb
amq-client-1.0.0 spec/integration/eventmachine/queue_declare_spec.rb
amq-client-0.9.12 spec/integration/eventmachine/queue_declare_spec.rb
amq-client-0.9.11 spec/integration/eventmachine/queue_declare_spec.rb
amq-client-0.9.10 spec/integration/eventmachine/queue_declare_spec.rb
amq-client-0.9.9 spec/integration/eventmachine/queue_declare_spec.rb
amq-client-0.9.8 spec/integration/eventmachine/queue_declare_spec.rb
amq-client-0.9.7 spec/integration/eventmachine/queue_declare_spec.rb
amq-client-0.9.6 spec/integration/eventmachine/queue_declare_spec.rb
amq-client-0.9.5 spec/integration/eventmachine/queue_declare_spec.rb
amq-client-0.9.4 spec/integration/eventmachine/queue_declare_spec.rb
amq-client-1.0.0.pre2 spec/integration/eventmachine/queue_declare_spec.rb
amq-client-0.9.3 spec/integration/eventmachine/queue_declare_spec.rb
amq-client-1.0.0.pre1 spec/integration/eventmachine/queue_declare_spec.rb
amq-client-0.9.2 spec/integration/eventmachine/queue_declare_spec.rb
amq-client-0.9.1 spec/integration/eventmachine/queue_declare_spec.rb