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-0.9.0 spec/integration/eventmachine/queue_declare_spec.rb
amq-client-0.9.0.pre2 spec/integration/eventmachine/queue_declare_spec.rb
amq-client-0.9.0.pre1 spec/integration/eventmachine/queue_declare_spec.rb
amq-client-0.8.7 spec/integration/eventmachine/queue_declare_spec.rb
amq-client-0.8.7.pre1 spec/integration/eventmachine/queue_declare_spec.rb
amq-client-0.8.6 spec/integration/eventmachine/queue_declare_spec.rb
amq-client-0.8.5 spec/integration/eventmachine/queue_declare_spec.rb
amq-client-0.8.4 spec/integration/eventmachine/queue_declare_spec.rb
amq-client-0.8.3 spec/integration/eventmachine/queue_declare_spec.rb
amq-client-0.8.2 spec/integration/eventmachine/queue_declare_spec.rb
amq-client-0.8.1 spec/integration/eventmachine/queue_declare_spec.rb
amq-client-0.8.0 spec/integration/eventmachine/queue_declare_spec.rb