<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -162,7 +162,7 @@ module Ardes #:nodoc:
     # This allows actions without an explicit respond_to block to be decorated
     # with response_for
     def render_with_response_for(*args, &amp;block)
-      if !instance_variable_get('@performed_respond_to') &amp;&amp; !block_given? &amp;&amp; args.reject(&amp;:nil?) == [] &amp;&amp; self.class.send(:action_responses)[action_name]
+      if !instance_variable_get('@performed_respond_to') &amp;&amp; self.class.send(:action_responses)[action_name] &amp;&amp; !block_given? &amp;&amp; args.reject{|a| a.nil? || a.empty?}.empty?
         respond_to
         return if performed?
       end</diff>
      <filename>lib/ardes/response_for.rb</filename>
    </modified>
    <modified>
      <diff>@@ -11,6 +11,10 @@ class FooController &lt; ApplicationController
     respond_to(:json)
     erase_render_results
   end
+  
+  def baz
+    # no respond_to block in here, but we can still supplu one with response_for
+  end
 end
 
 class XmlFooController &lt; FooController</diff>
      <filename>spec/app.rb</filename>
    </modified>
    <modified>
      <diff>@@ -5,6 +5,10 @@ class FooAController &lt; FooController
   response_for :foo do |format|
     format.html { a }
   end
+  
+  response_for :baz do |format|
+    format.html { bazza }
+  end
 end
 
 class FooBController &lt; FooAController
@@ -16,12 +20,18 @@ end
 describe FooAController do
   before do
     @controller.stub!(:a)
+    @controller.stub!(:bazza)
   end
   
-  it &quot;get :foo should call :b&quot; do
+  it &quot;get :foo should call a&quot; do
     @controller.should_receive(:a)
     get :foo
   end
+  
+  it &quot;get :baz should call bazza (inside the response_for block)&quot; do
+    @controller.should_receive(:bazza)
+    get :baz
+  end
 end
 
 describe FooBController do
@@ -29,7 +39,7 @@ describe FooBController do
     @controller.stub!(:b)
   end
   
-  it &quot;get :foo should call :b&quot; do
+  it &quot;get :foo should call b&quot; do
     @controller.should_receive(:b)
     get :foo
   end</diff>
      <filename>spec/controllers/inerited_controllers_spec.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>8ab63ae5dcbff171a619e5a7c9e2bfe29fcc9085</id>
    </parent>
  </parents>
  <author>
    <name>Ian White</name>
    <email>ian.w.white@gmail.com</email>
  </author>
  <url>http://github.com/ianwhite/response_for/commit/1b82c3926db29402ab28207f3ac4e9e1c6c8c9b7</url>
  <id>1b82c3926db29402ab28207f3ac4e9e1c6c8c9b7</id>
  <committed-date>2008-04-30T08:43:59-07:00</committed-date>
  <authored-date>2008-04-30T08:43:59-07:00</authored-date>
  <message>Added some specs to bring C2 up to 100%, caught a bug introduced by changes in edge</message>
  <tree>135e52e28be0ef98b10c1234dd62b1ccca7ea4fc</tree>
  <committer>
    <name>Ian White</name>
    <email>ian.w.white@gmail.com</email>
  </committer>
</commit>
