GitHub Sale: sign up for any paid plan this week and pay nothing until January 1, 2009!  [ 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)
Sat May 10 03:29:52 -0700 2008
commit  b137282e73bd518d249dc19e5cd17ead933f91b9
tree    50b0b7f7fff3624d716c2242a892a653052df3f0
parent  d31dc2d7f28cef553ae480c6216ecd87ef766ed4
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