We got nominated! Help us out and vote for GitHub as Best Bootstrapped Startup of 2008. (You can vote once a day.) [ hide ]

public
Description: Phusion Passenger (mod_rails)
Homepage: http://www.modrails.com/
Clone URL: git://github.com/FooBarWidget/passenger.git
Click here to lend your support to: passenger and make a donation at www.pledgie.com !
passenger / test / abstract_server_spec.rb
edbb8f20 » Hongli Lai (Phusion) 2008-02-18 Add RSpec specifications fo... 1 shared_examples_for "AbstractServer" do
c214a11e » Hongli Lai (Phusion) 2008-05-06 Refactor more tests. 2 it "doesn't crash if it's started and stopped multiple times" do
edbb8f20 » Hongli Lai (Phusion) 2008-02-18 Add RSpec specifications fo... 3 3.times do
4 # Give the server some time to install the
5 # signal handlers. If we don't give it enough
6 # time, it will raise an ugly exception when
7 # we send it a signal.
8 sleep 0.1
9 @server.stop
10 @server.start
11 end
12 end
95f365aa » Hongli Lai (Phusion) 2008-02-28 Add a test 13
c214a11e » Hongli Lai (Phusion) 2008-05-06 Refactor more tests. 14 it "raises a ServerAlreadyStarted if the server is already started" do
382f8d52 » Hongli Lai (Phusion) 2008-02-28 Improve API documentation. ... 15 lambda { @server.start }.should raise_error(AbstractServer::ServerAlreadyStarted)
95f365aa » Hongli Lai (Phusion) 2008-02-28 Add a test 16 end
edbb8f20 » Hongli Lai (Phusion) 2008-02-18 Add RSpec specifications fo... 17 end