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 !
Update some documentation. Force RAILS_ENV=production in unit tests.
Hongli Lai (Phusion) (author)
Wed Feb 27 07:49:36 -0800 2008
commit  c1366da1259bf7dac79b88c617ef2f41cc916401
tree    8b461ef056c5075042ace924dcc7f25abec4aa2d
parent  c7a3c3dab901bc0cb38d734e11d424ee26ed444e
0
...
139
140
141
142
 
 
 
 
143
144
...
139
140
141
 
142
143
144
145
146
147
0
@@ -139,6 +139,9 @@ To run the unit tests, run the following command:
0
 
0
  rake test
0
 
0
-For a full list of Rake tests, run:
0
+*Note*: some tests, such as the ones that test privilege lowering, require
0
+root privileges. Those will only be run if the test suit is run as root.
0
+
0
+For a full list of Rake tasks, run:
0
 
0
  rake -T
...
308
309
310
311
312
313
314
315
 
316
317
318
...
308
309
310
 
 
 
 
 
311
312
313
314
0
@@ -308,11 +308,7 @@ using namespace boost;
0
   }
0
   
0
   #if 0
0
- TEST_METHOD(10) {
0
- // Test whether get() throws the right exceptions
0
- // TODO
0
- }
0
-
0
+ // TODO: test whether restarting really results in code reload
0
   // TODO: test spawning application as a different user
0
   #endif
0
 
...
2
3
4
 
5
6
7
...
12
13
14
 
15
16
17
...
2
3
4
5
6
7
8
...
13
14
15
16
17
18
19
0
@@ -2,6 +2,7 @@
0
 #include "tut_reporter.h"
0
 #include <apr_general.h>
0
 #include <signal.h>
0
+#include <cstdlib>
0
 
0
 namespace tut {
0
   test_runner_singleton runner;
0
@@ -12,6 +13,7 @@ int main() {
0
   tut::reporter reporter;
0
   tut::runner.get().set_callback(&reporter);
0
   signal(SIGPIPE, SIG_IGN);
0
+ setenv("RAILS_ENV", "production", 1);
0
   try {
0
     tut::runner.get().run_tests();
0
   } catch (const std::exception &ex) {

Comments

    No one has commented yet.