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

- old
+ new

@@ -49,25 +49,25 @@ describe AMQP, " tested with AMQP::SpecHelper when Rspec failures occur" do include AMQP::SpecHelper it "bubbles failing expectations up to Rspec" do - proc { + expect { amqp do :this.should == :fail end - }.should raise_error Spec::Expectations::ExpectationNotMetError + }.to raise_error Spec::Expectations::ExpectationNotMetError AMQP.conn.should == nil end it "should NOT ignore failing expectations after 'done'" do - proc { + expect { amqp do done :this.should == :fail end - }.should raise_error Spec::Expectations::ExpectationNotMetError + }.to raise_error Spec::Expectations::ExpectationNotMetError AMQP.conn.should == nil end it "should properly close AMQP connection after Rspec failures" do AMQP.conn.should == nil @@ -75,14 +75,14 @@ end describe 'MQ', " when MQ.queue/fanout/topic tries to access Thread.current[:mq] across examples" do include AMQP::SpecHelper - it 'sends data to queue' do + it 'sends data to the queue' do publish_and_consume_once end - it 'sends data to queue, again' do + it 'does not hang sending data to the same queue, again' do publish_and_consume_once end it 'cleans Thread.current[:mq] after pubsub examples' do Thread.current[:mq].should be_nil \ No newline at end of file