Sha256: 9df73f4041e480211f2c6d6e9b543b5ee89e2388252abb784e988af17a5ecd69
Contents?: true
Size: 436 Bytes
Versions: 54
Compression:
Stored size: 436 Bytes
Contents
# encoding: utf-8 require "spec_helper" describe AMQP::Channel, "#close(&callback)" do include EventedSpec::AMQPSpec it "takes a callback which will run when we get back Channel.Close-Ok" do @events = [] AMQP::Channel.new do |ch| @events << :open_ok ch.close do |channel, close_ok| @events << :close_ok end end done(0.3) { @events.should == [:open_ok, :close_ok] } end end
Version data entries
54 entries across 54 versions & 1 rubygems