Sha256: 5b542d45d283a6a84e40296eff56c13c6a1a3195892c6f5edc4926b479899288
Contents?: true
Size: 512 Bytes
Versions: 12
Compression:
Stored size: 512 Bytes
Contents
shared_examples_for "AbstractServer" do it "doesn't crash if it's started and stopped multiple times" do 3.times do # Give the server some time to install the # signal handlers. If we don't give it enough # time, it will raise an ugly exception when # we send it a signal. sleep 0.1 @server.stop @server.start end end it "raises a ServerAlreadyStarted if the server is already started" do lambda { @server.start }.should raise_error(AbstractServer::ServerAlreadyStarted) end end
Version data entries
12 entries across 12 versions & 2 rubygems