Sha256: 52533e9e738584f10507234be3db97fa8a1a591b9313597fe762c4890e5c4971

Contents?: true

Size: 675 Bytes

Versions: 8

Compression:

Stored size: 675 Bytes

Contents

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

8 entries across 8 versions & 1 rubygems

Version Path
amq-client-0.7.0.alpha35 spec/integration/eventmachine/queue_declare_spec.rb
amq-client-0.7.0.alpha34 spec/integration/eventmachine/queue_declare_spec.rb
amq-client-0.7.0.alpha33 spec/integration/eventmachine/queue_declare_spec.rb
amq-client-0.7.0.alpha32 spec/integration/eventmachine/queue_declare_spec.rb
amq-client-0.7.0.alpha31 spec/integration/eventmachine/queue_declare_spec.rb
amq-client-0.7.0.alpha30 spec/integration/eventmachine/queue_declare_spec.rb
amq-client-0.7.0.alpha29 spec/integration/eventmachine/queue_declare_spec.rb
amq-client-0.7.0.alpha28 spec/integration/eventmachine/queue_declare_spec.rb