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 !
Fix some unit test failures that are triggerred by older Ruby versions.
Hongli Lai (Phusion (author)
Fri Jul 18 03:23:05 -0700 2008
commit  2dfbe33484568bfa86e72de70a295d615b3cc51f
tree    2d69b9a0b63fc504ada53c3971c857c79f7c7f9e
parent  46d6cfaab51352cae4e016ad517d20e40f83af8a
...
124
125
126
127
 
 
128
129
130
...
135
136
137
 
138
139
140
...
124
125
126
 
127
128
129
130
131
...
136
137
138
139
140
141
142
0
@@ -124,7 +124,8 @@ shared_examples_for "MyCook(tm) beta" do
0
     get('/').should =~ /Welcome to MyCook/
0
   end
0
   
0
- it "does not conflict with Phusion Passenger is there's a model named 'Passenger'" do
0
+ it "does not conflict with Phusion Passenger if there's a model named 'Passenger'" do
0
+ Dir.mkdir("#{@stub.app_root}/app/models") rescue nil
0
     File.open("#{@stub.app_root}/app/models/passenger.rb", 'w') do |f|
0
       f.write(%q{
0
         class Passenger
0
@@ -135,6 +136,7 @@ shared_examples_for "MyCook(tm) beta" do
0
       })
0
     end
0
     begin
0
+ system "touch '#{@stub.app_root}/tmp/restart.txt'"
0
       get('/welcome/passenger_name').should == 'Gourry Gabriev'
0
     ensure
0
       File.unlink("#{@stub.app_root}/app/models/passenger.rb") rescue nil
...
37
38
39
 
40
41
42
...
37
38
39
40
41
42
43
0
@@ -37,6 +37,7 @@ shared_examples_for "a minimal spawner" do
0
   
0
   it "does not conflict with models in the application that are named 'Passenger'" do
0
     use_rails_stub('foobar') do |stub|
0
+ Dir.mkdir("#{stub.app_root}/app/models")
0
       File.open("#{stub.app_root}/app/models/passenger.rb", 'w') do |f|
0
         f.write(%q{
0
           class Passenger

Comments

    No one has commented yet.