spec/punchblock/translator/asterisk/call_spec.rb in punchblock-2.0.0 vs spec/punchblock/translator/asterisk/call_spec.rb in punchblock-2.0.1
- old
+ new
@@ -294,9 +294,10 @@
let(:cause_txt) { 'Normal Clearing' }
it "should cause the actor to be terminated" do
translator.should_receive(:handle_pb_event).twice
subject.process_ami_event ami_event
+ Celluloid::Actor.join(subject, 1)
subject.should_not be_alive
end
it "de-registers the call from the translator" do
translator.stub :handle_pb_event