<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -344,5 +344,15 @@
 		}
 		ensure_equals(&quot;App should have been cleaned up&quot;, pool-&gt;getCount(), 0u);
 	}
+	
+	TEST_METHOD(17) {
+		// MaxPerApp must be respected.
+		pool-&gt;setMax(3);
+		pool-&gt;setMaxPerApp(1);
+		
+		Application::SessionPtr session1 = pool-&gt;get(&quot;stub/minimal-railsapp&quot;);
+		Application::SessionPtr session2 = pool2-&gt;get(&quot;stub/minimal-railsapp&quot;);
+		ensure_equals(&quot;Only 1 application should have been spawned&quot;, pool-&gt;getCount(), 1u);
+	}
 
 #endif /* USE_TEMPLATE */</diff>
      <filename>test/ApplicationPoolTest.cpp</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>7a1591fd13112faf256317990740d52e371c9013</id>
    </parent>
  </parents>
  <author>
    <name>Hongli Lai (Phusion)</name>
    <email>hongli@phusion.nl</email>
  </author>
  <url>http://github.com/FooBarWidget/passenger/commit/828e920df2606523246d66bff484707880e344d5</url>
  <id>828e920df2606523246d66bff484707880e344d5</id>
  <committed-date>2008-05-15T13:43:58-07:00</committed-date>
  <authored-date>2008-05-15T13:43:58-07:00</authored-date>
  <message>Add unit test for RailsMaxInstancesPerApp.</message>
  <tree>55cf024f50d712ebee2d5af22ffe2045a41c99b6</tree>
  <committer>
    <name>Hongli Lai (Phusion)</name>
    <email>hongli@phusion.nl</email>
  </committer>
</commit>
