<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -63,46 +63,42 @@ module InheritedControllerSpec
   describe SuperController do
     describe &quot;GET :an_action&quot; do
       it &quot;should execute action&quot; do
-        if Rails.version &gt;= '2.3'
-          pending &quot;rspec/rails2.3 integrate_views working&quot; do
-            @controller.should_receive :inside_an_action
-            get :an_action
-          end
+        spec = lambda do
+          @controller.should_receive :inside_an_action
+          get :an_action
         end
+        Rails.version &gt;= '2.3' ? pending(&quot;rspec/rails2.3 integrate_views working&quot;) { spec.call } : spec.call
       end
     
       it &quot;should render :an_action&quot; do
-        if Rails.version &gt;= '2.3'
-          pending &quot;rspec/rails2.3 integrate_views working&quot; do
-            get :an_action
-            # different rails/rspec behaviour catered for
-            begin
-              response.should render_template('an_action')
-            rescue
-              response.should render_template('inherited_spec/super/an_action')
-            end
+        spec = lambda do
+          get :an_action
+          # different rails/rspec behaviour catered for
+          begin
+            response.should render_template('an_action')
+          rescue
+            response.should render_template('inherited_spec/super/an_action')
           end
         end
+        Rails.version &gt;= '2.3' ? pending(&quot;rspec/rails2.3 integrate_views working&quot;) { spec.call } : spec.call
       end
     end
     
     describe &quot;GET :a_response&quot; do
       it &quot;should execute inside the super response block&quot; do
-        if Rails.version &gt;= '2.3'
-          pending &quot;rspec/rails2.3 integrate_views working&quot; do
-            @controller.should_receive :super_inside_a_response
-            get :a_response
-          end
+        spec = lambda do
+          @controller.should_receive :super_inside_a_response
+          get :a_response
         end
+        Rails.version &gt;= '2.3' ? pending(&quot;rspec/rails2.3 integrate_views working&quot;) { spec.call } : spec.call
       end
       
       it &quot;should NOT execute inside the sub response block&quot; do
-        if Rails.version &gt;= '2.3'
-          pending &quot;rspec/rails2.3 integrate_views working&quot; do
-            @controller.should_not_receive :sub_inside_a_response
-            get :a_response
-          end
+        spec = lambda do
+          @controller.should_not_receive :sub_inside_a_response
+          get :a_response
         end
+        Rails.version &gt;= '2.3' ? pending(&quot;rspec/rails2.3 integrate_views working&quot;) { spec.call } : spec.call
       end
     end
     
@@ -129,21 +125,19 @@ module InheritedControllerSpec
     
     describe &quot;GET :a_response (decorated with a new response)&quot; do
       it &quot;should NOT execute the super response&quot; do
-        if Rails.version &gt;= '2.3'
-          pending &quot;rspec/rails2.3 integrate_views working&quot; do
-            @controller.should_not_receive :super_inside_a_response
-            get :a_response
-          end
+        spec = lambda do
+          @controller.should_not_receive :super_inside_a_response
+          get :a_response
         end
+        Rails.version &gt;= '2.3' ? pending(&quot;rspec/rails2.3 integrate_views working&quot;) { spec.call } : spec.call
       end
 
       it &quot;should execute the sub response&quot; do
-        if Rails.version &gt;= '2.3'
-          pending &quot;rspec/rails2.3 integrate_views working&quot; do
-            @controller.should_receive :sub_inside_a_response
-            get :a_response
-          end
+        spec = lambda do
+          @controller.should_receive :sub_inside_a_response
+          get :a_response
         end
+        Rails.version &gt;= '2.3' ? pending(&quot;rspec/rails2.3 integrate_views working&quot;) { spec.call } : spec.call
       end
     end
     </diff>
      <filename>spec/controllers/inherited_controllers_spec.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>ce9705f6aff79ae9b1af8cfba0a548f1ff6c1f7d</id>
    </parent>
  </parents>
  <author>
    <name>Ian White</name>
    <email>ian.w.white@gmail.com</email>
  </author>
  <url>http://github.com/ianwhite/response_for/commit/d7ce156cc451e0f5f7ae59fd9e38474ce479dfae</url>
  <id>d7ce156cc451e0f5f7ae59fd9e38474ce479dfae</id>
  <committed-date>2009-02-19T13:26:38-08:00</committed-date>
  <authored-date>2009-02-19T13:26:38-08:00</authored-date>
  <message>Make pending 2.3 specs run on earlier versions</message>
  <tree>1e8a42e55600b942a81f1ca9cdd0c71b18d8010d</tree>
  <committer>
    <name>Ian White</name>
    <email>ian.w.white@gmail.com</email>
  </committer>
</commit>
