Sha256: 774c7e1541ef7aa1e9fca25ad3f45bb7c72a2ae680a918ea9b5ff140467269b7
Contents?: true
Size: 658 Bytes
Versions: 10
Compression:
Stored size: 658 Bytes
Contents
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
10 entries across 10 versions & 1 rubygems