spec/adhearsion_spec.rb in adhearsion-2.0.0.rc1 vs spec/adhearsion_spec.rb in adhearsion-2.0.0.rc2

- old
+ new

@@ -59,9 +59,19 @@ end it "should return the same instance each time" do Adhearsion.active_calls.should be Adhearsion.active_calls end + + it "should create a new collection if the existing one dies" do + original = Adhearsion.active_calls + original.terminate + original.should_not be_alive + + current = Adhearsion.active_calls + current.should be_alive + current.should_not be original + end end describe "#status" do it "should be the process status name" do Adhearsion.status.should be == :booting