Sha256: 2528639a81cb3b1f6f275d63172b0734dace890f88926847406a4f60a0f201a9
Contents?: true
Size: 677 Bytes
Versions: 32
Compression:
Stored size: 677 Bytes
Contents
# encoding: utf-8 require 'spec_helper' require 'integration/eventmachine/spec_helper' describe AMQ::Client::EventMachineClient, "Channel.Close" do include EventedSpec::SpecHelper default_timeout 1 it "should close the channel" do @events = [] em_amqp_connect do |connection| @events << :connect channel = AMQ::Client::Channel.new(connection, 1) channel.open do @events << :open channel.close do @events << :close connection.disconnect do @events << :disconnect done end end end end @events.should == [:connect, :open, :close, :disconnect] end end
Version data entries
32 entries across 32 versions & 1 rubygems