<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -380,7 +380,7 @@ class Merb::BootLoader::LoadClasses &lt; Merb::BootLoader
       @ran = true
       $0 = &quot;merb: master&quot;
       
-      if Merb::Config[:fork_for_class_load]
+      if Merb::Config[:fork_for_class_load] &amp;&amp; !Merb.env == &quot;test&quot;
         start_transaction
       else
         trap('INT') do </diff>
      <filename>lib/merb-core/bootloader.rb</filename>
    </modified>
    <modified>
      <diff>@@ -82,7 +82,7 @@ module Merb
         rescue Errno::EACCES =&gt; e
           Merb.fatal! e.message, e
         rescue Errno::ENOENT =&gt; e
-          Merb.fatal! &quot;Could not find a PID file at #{pid_file(port)}&quot;, e
+          Merb.fatal! &quot;Could not find a PID file at #{pid_file(port)}&quot;, e           
         end
         if sig.is_a?(Integer)
           sig = Signal.list.invert[sig]
@@ -236,10 +236,7 @@ module Merb
       def pid_files
         if Merb::Config[:pid_file]
           if Merb::Config[:cluster]
-            ext = File.extname(Merb::Config[:pid_file])
-            base = File.basename(Merb::Config[:pid_file], ext)
-            dir = File.dirname(Merb::Config[:pid_file])
-            Dir[dir / &quot;#{base}.*#{ext}&quot;]
+            Dir[Merb::Config[:pid_file] % &quot;*&quot;]
           else
             [ Merb::Config[:pid_file] ]
           end</diff>
      <filename>lib/merb-core/server.rb</filename>
    </modified>
    <modified>
      <diff>@@ -56,12 +56,12 @@ describe Merb::Config do
 
   it &quot;should support -c to set the number of cluster nodes&quot; do
     Merb::Config.parse_args([&quot;-c&quot;, &quot;4&quot;])
-    Merb::Config[:cluster].should == &quot;4&quot;
+    Merb::Config[:cluster].should == 4
   end
 
   it &quot;should support -p to set the port number&quot; do
     Merb::Config.parse_args([&quot;-p&quot;, &quot;6000&quot;])
-    Merb::Config[:port].should == &quot;6000&quot;
+    Merb::Config[:port].should == 6000
   end
 
   it &quot;should support -o to set the socket filename&quot; do
@@ -76,12 +76,12 @@ describe Merb::Config do
 
   it &quot;should support -s to set the socket number&quot; do
     Merb::Config.parse_args([&quot;-s&quot;, &quot;0&quot;])
-    Merb::Config[:socket].should == &quot;0&quot;
+    Merb::Config[:socket].should == 0
   end
 
   it &quot;should support --socket to set the socket number&quot; do
     Merb::Config.parse_args([&quot;--socket&quot;, &quot;3&quot;])
-    Merb::Config[:socket].should == &quot;3&quot;
+    Merb::Config[:socket].should == 3
   end
 
   it &quot;should support -P to set the PIDfile&quot; do
@@ -96,7 +96,7 @@ describe Merb::Config do
   end
 
   it &quot;should support setting of PIDfile with cluster nodes&quot; do
-    Merb::Config.parse_args([&quot;-P&quot;, &quot;/tmp/merb.pidfile&quot;, &quot;-c&quot;, &quot;2&quot;, &quot;-p&quot;, &quot;6000&quot;])
+    Merb::Config.parse_args([&quot;-P&quot;, &quot;/tmp/merb.%s.pidfile&quot;, &quot;-c&quot;, &quot;2&quot;, &quot;-p&quot;, &quot;6000&quot;])
     Merb::Server.pid_file(6000).should == &quot;/tmp/merb.6000.pidfile&quot;
     Merb::Server.pid_file(6001).should == &quot;/tmp/merb.6001.pidfile&quot;
 
@@ -144,12 +144,12 @@ describe Merb::Config do
   end
 
   it &quot;should support -K for a graceful kill&quot; do
-    Merb::Server.should_receive(:kill).with(&quot;all&quot;, 1)
+    Merb::Server.should_receive(:kill).with(&quot;main&quot;, 2)
     Merb.start([&quot;-K&quot;, &quot;all&quot;])
   end
 
   it &quot;should support -k for a hard kill&quot; do
-    Merb::Server.should_receive(:kill).with(&quot;all&quot;, 9)
+    Merb::Server.should_receive(:kill).with(&quot;main&quot;, 9)
     Merb.start([&quot;-k&quot;, &quot;all&quot;])
   end
 </diff>
      <filename>spec/private/config/config_spec.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>67e1756c267edb27f0229e0e7f9883736868742a</id>
    </parent>
  </parents>
  <author>
    <name>Yehuda Katz</name>
    <email>wycats@gmail.com</email>
  </author>
  <url>http://github.com/wycats/merb-core/commit/afc291cd9d5c660c4071741b21e79a3df62223f2</url>
  <id>afc291cd9d5c660c4071741b21e79a3df62223f2</id>
  <committed-date>2008-09-27T18:27:12-07:00</committed-date>
  <authored-date>2008-09-27T13:23:28-07:00</authored-date>
  <message>Tests pass: we don't need to fork for class load in test env, plus update config spec for some small changes to the internal API</message>
  <tree>9cdf7dc797772bbf506d7431ca00f168af4b1acf</tree>
  <committer>
    <name>Yehuda Katz</name>
    <email>wycats@gmail.com</email>
  </committer>
</commit>
