spec/adhearsion/process_spec.rb in adhearsion-2.4.0.beta1 vs spec/adhearsion/process_spec.rb in adhearsion-2.4.0.beta2

- old
+ new

@@ -96,7 +96,21 @@ it 'should forcibly kill the Adhearsion process on :force_stop' do ::Process.should_receive(:exit).once.with(1) Adhearsion::Process.force_stop end + + describe "#fqdn" do + it "should be a string" do + Adhearsion::Process.fqdn.should be_a String + end + + context "when networking issues crop up" do + before { Socket.stub(:gethostbyname).and_raise(SocketError) } + + it "should still be a string" do + Adhearsion::Process.fqdn.should be_a String + end + end + end end end