spec/rspec_amqp_spec.rb in amqp-spec-0.1.11 vs spec/rspec_amqp_spec.rb in amqp-spec-0.1.12

- old
+ new

@@ -10,14 +10,11 @@ amqp do q = MQ.queue(queue_name) q.subscribe do |hdr, msg| hdr.should be_an MQ::Header msg.should == data - EM.next_tick { - q.unsubscribe; q.delete - done - } + done {q.unsubscribe; q.delete} end EM.add_timer(0.2) do MQ.queue(queue_name).publish data end end @@ -32,14 +29,13 @@ puts "Default timeout: #{default_timeout.inspect}, Default options:" p default_options it_should_behave_like 'SpecHelper examples' - it_should_behave_like 'timeout examples' context 'inside embedded context / example group' do + it_should_behave_like 'SpecHelper examples' - it_should_behave_like 'timeout examples' end end describe AMQP, " when testing with AMQP::Spec" do include AMQP::Spec \ No newline at end of file