<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -40,7 +40,7 @@ class ReloaderTests &lt; ActiveSupport::TestCase
     @lock = Mutex.new
   end
 
-  def setup_and_return_body(app = lambda { })
+  def setup_and_return_body(app = lambda { |env| })
     Dispatcher.expects(:reload_application)
     reloader = Reloader.new(app, @lock)
     headers, status, body = reloader.call({ })
@@ -49,7 +49,7 @@ class ReloaderTests &lt; ActiveSupport::TestCase
 
   def test_it_reloads_the_application_before_the_request
     Dispatcher.expects(:reload_application)
-    reloader = Reloader.new(lambda {
+    reloader = Reloader.new(lambda { |env|
       [200, { &quot;Content-Type&quot; =&gt; &quot;text/html&quot; }, [&quot;&quot;]]
     }, @lock)
     reloader.call({ })
@@ -58,7 +58,7 @@ class ReloaderTests &lt; ActiveSupport::TestCase
   def test_it_locks_before_calling_app
     lock = MyLock.new
     Dispatcher.expects(:reload_application)
-    reloader = Reloader.new(lambda {
+    reloader = Reloader.new(lambda { |env|
       [200, { &quot;Content-Type&quot; =&gt; &quot;text/html&quot; }, [&quot;&quot;]]
     }, lock)
     assert !lock.locked?
@@ -69,7 +69,7 @@ class ReloaderTests &lt; ActiveSupport::TestCase
   def it_unlocks_upon_calling_close_on_body
     lock = MyLock.new
     Dispatcher.expects(:reload_application)
-    reloader = Reloader.new(lambda {
+    reloader = Reloader.new(lambda { |env|
       [200, { &quot;Content-Type&quot; =&gt; &quot;text/html&quot; }, [&quot;&quot;]]
     }, lock)
     headers, status, body = reloader.call({ })
@@ -78,14 +78,14 @@ class ReloaderTests &lt; ActiveSupport::TestCase
   end
 
   def test_returned_body_object_always_responds_to_close
-    body = setup_and_return_body(lambda {
+    body = setup_and_return_body(lambda { |env|
       [200, { &quot;Content-Type&quot; =&gt; &quot;text/html&quot; }, [&quot;&quot;]]
     })
     assert body.respond_to?(:close)
   end
 
   def test_returned_body_object_behaves_like_underlying_object
-    body = setup_and_return_body(lambda {
+    body = setup_and_return_body(lambda { |env|
       b = MyBody.new
       b &lt;&lt; &quot;hello&quot;
       b &lt;&lt; &quot;world&quot;
@@ -100,7 +100,7 @@ class ReloaderTests &lt; ActiveSupport::TestCase
 
   def test_it_calls_close_on_underlying_object_when_close_is_called_on_body
     close_called = false
-    body = setup_and_return_body(lambda {
+    body = setup_and_return_body(lambda { |env|
       b = MyBody.new do
         close_called = true
       end
@@ -111,7 +111,7 @@ class ReloaderTests &lt; ActiveSupport::TestCase
   end
 
   def test_returned_body_object_responds_to_all_methods_supported_by_underlying_object
-    body = setup_and_return_body(lambda {
+    body = setup_and_return_body(lambda { |env|
       [200, { &quot;Content-Type&quot; =&gt; &quot;text/html&quot; }, MyBody.new]
     })
     assert body.respond_to?(:size)
@@ -122,14 +122,14 @@ class ReloaderTests &lt; ActiveSupport::TestCase
 
   def test_it_doesnt_clean_up_the_application_after_call
     Dispatcher.expects(:cleanup_application).never
-    body = setup_and_return_body(lambda {
+    body = setup_and_return_body(lambda { |env|
       [200, { &quot;Content-Type&quot; =&gt; &quot;text/html&quot; }, MyBody.new]
     })
   end
 
   def test_it_cleans_up_the_application_when_close_is_called_on_body
     Dispatcher.expects(:cleanup_application)
-    body = setup_and_return_body(lambda {
+    body = setup_and_return_body(lambda { |env|
       [200, { &quot;Content-Type&quot; =&gt; &quot;text/html&quot; }, MyBody.new]
     })
     body.close</diff>
      <filename>actionpack/test/controller/reloader_test.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>f09ceb55c0eaa8f81d5cb426501a32f86f96b23c</id>
    </parent>
  </parents>
  <author>
    <name>Jeremy Kemper</name>
    <email>jeremy@bitsweat.net</email>
  </author>
  <url>http://github.com/findsyou/rails/commit/6cbcfffeb118ecbb7c1930c74de7b8b6a49dfacd</url>
  <id>6cbcfffeb118ecbb7c1930c74de7b8b6a49dfacd</id>
  <committed-date>2009-08-01T20:18:22-07:00</committed-date>
  <authored-date>2009-08-01T20:18:22-07:00</authored-date>
  <message>Ruby 1.9: fix reloader tests using lambdas with no env arg</message>
  <tree>3f4b6d0cb08e59b8e5cb3ea3352a9af213f8bda8</tree>
  <committer>
    <name>Jeremy Kemper</name>
    <email>jeremy@bitsweat.net</email>
  </committer>
</commit>
