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 !
Hongli Lai (Phusion) (author)
Fri Apr 11 09:14:31 -0700 2008
passenger / test / minimal_spawner_spec.rb
100644 20 lines (18 sloc) 0.442 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
shared_examples_for "a minimal spawner" do
  it "should be able to spawn our stub application" do
    app = spawn_application
    app.pid.should_not == 0
    app.app_root.should_not be_nil
    app.close
  end
  
  it "should be able to spawn an arbitary number of applications" do
    last_pid = 0
    4.times do
      app = spawn_application
      app.pid.should_not == last_pid
      app.app_root.should_not be_nil
      last_pid = app.pid
      app.close
    end
  end
end