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 !
Add tests for the new reload() behavior.
Hongli Lai (Phusion) (author)
Mon Mar 31 07:37:00 -0700 2008
commit  db177c50a9fc48800ece33c78e8b26fcdbadb81d
tree    db4743b70ead38b717531dd7fa59e516323d189b
parent  82065691567e2108c142b5743bc1a724907a6aa7
...
58
59
60
 
 
 
 
 
 
 
 
 
 
 
61
62
63
...
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
0
@@ -58,6 +58,17 @@ describe SpawnManager do
0
     Process.waitpid(pid) rescue nil
0
   end
0
   
0
+ it "should not crash upon spawning an application that doesn't specify its Rails version" do
0
+ @manager.spawn_application('stub/railsapp-without-version-spec').close
0
+ end
0
+
0
+ it "should properly reload applications that do not specify a Rails version" do
0
+ @manager.spawn_application('stub/railsapp-without-version-spec').close
0
+ @manager.reload('stub/railsapp-without-version-spec')
0
+ spawners = @manager.instance_eval { @spawners }
0
+ spawners.should be_empty
0
+ end
0
+
0
   def spawn_application
0
     @manager.spawn_application('stub/minimal-railsapp')
0
   end

Comments

    No one has commented yet.