Sha256: fd39e570ea96279be21bea6711d64a3806dbbc2d7da9d071f6985c82e1b44ef5
Contents?: true
Size: 761 Bytes
Versions: 18
Compression:
Stored size: 761 Bytes
Contents
require 'support/config' require 'ruby/abstract_server_spec' shared_examples_for "a spawn server" do it_should_behave_like "an AbstractServer" it "raises an AbstractServer::ServerError if the server was killed" do Process.kill('SIGABRT', @spawner.server_pid) spawning = lambda { spawn_arbitrary_application } spawning.should raise_error(AbstractServer::ServerError) end it "works correctly after a restart, if something went wrong" do Process.kill('SIGABRT', @spawner.server_pid) spawning = lambda { spawn_arbitrary_application } spawning.should raise_error(AbstractServer::ServerError) @spawner.stop @spawner.start app = spawn_arbitrary_application app.pid.should_not == 0 app.app_root.should_not be_nil app.close end end
Version data entries
18 entries across 18 versions & 4 rubygems