spec/adhearsion/process_spec.rb in adhearsion-2.4.0.beta2 vs spec/adhearsion/process_spec.rb in adhearsion-2.4.0.beta3
- old
+ new
@@ -105,11 +105,11 @@
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
+ it "should raise SocketError" do
+ expect { Adhearsion::Process.fqdn }.to raise_error(SocketError)
end
end
end
end
end