Sha256: 1aaefc4841ade81d4a476f0f57d8e638ad7c4cfc0c63c13d01c75455ab11640c

Contents?: true

Size: 618 Bytes

Versions: 19

Compression:

Stored size: 618 Bytes

Contents

# encoding: utf-8

require 'spec_helper'

describe AMQP do

  #
  # Environment
  #

  include EventedSpec::AMQPSpec

  default_timeout 5

  amqp_before do
    @channel = AMQP::Channel.new
  end


  #
  # Examples
  #


  describe ".channel" do
    it 'gives each thread a separate channel' do
      pending 'This is not implemented in current lib'
      module AMQP
        @@cur_channel = 0
      end

      described_class.channel.should == 1

      Thread.new { described_class.channel }.value.should == 2
      Thread.new { described_class.channel }.value.should == 3
      done
    end
  end
end # describe AMQP

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
amqp-0.7.5 spec/unit/amqp/basic_spec.rb
amqp-0.7.4 spec/unit/amqp/basic_spec.rb
amqp-0.7.3 spec/unit/amqp/basic_spec.rb
amqp-0.7.2 spec/unit/amqp/basic_spec.rb
amqp-0.8.0.rc13 spec/unit/amqp/basic_spec.rb
amqp-0.8.0.rc12 spec/unit/amqp/basic_spec.rb
amqp-0.8.0.rc11 spec/unit/amqp/basic_spec.rb
amqp-0.8.0.rc10 spec/unit/amqp/basic_spec.rb
amqp-0.8.0.rc9 spec/unit/amqp/basic_spec.rb
amqp-0.8.0.rc8 spec/unit/amqp/basic_spec.rb
amqp-0.8.0.rc7 spec/unit/amqp/basic_spec.rb
amqp-0.8.0.rc6 spec/unit/amqp/basic_spec.rb
amqp-0.8.0.rc5 spec/unit/amqp/basic_spec.rb
amqp-0.8.0.rc4 spec/unit/amqp/basic_spec.rb
amqp-0.8.0.rc3 spec/unit/amqp/basic_spec.rb
amqp-0.8.0.rc2 spec/unit/amqp/basic_spec.rb
amqp-0.8.0.rc1 spec/unit/amqp/basic_spec.rb
amqp-0.8.0.pre.beta1 spec/unit/amqp/basic_spec.rb
amqp-0.8.0.beta1 spec/unit/amqp/basic_spec.rb