spec/integration/eventmachine/connection_close_spec.rb in amq-client-0.7.0.alpha25 vs spec/integration/eventmachine/connection_close_spec.rb in amq-client-0.7.0.alpha26

- old
+ new

@@ -5,16 +5,16 @@ include EventedSpec::SpecHelper default_timeout 0.5 it "should issue a callback and close connection" do em do - AMQ::Client::EventMachineClient.connect do |client| - @client = client - client.should be_opened - client.close do + AMQ::Client::EventMachineClient.connect do |connection| + @connection = connection + connection.should be_opened + connection.disconnect do done end end end - @client.should be_closed + @connection.should be_closed end end