<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>spec_resources/views/objects/_object.html.erb</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -151,38 +151,14 @@ end
 
 describe &quot;A view that includes a partial using an array as partial_path&quot;, :type =&gt; :view do
   before(:each) do
-    module ActionView::Partials
-      def render_template_with_partial_with_array_support(partial_path, local_assigns = nil, deprecated_local_assigns = nil)
-        if partial_path.is_a?(Array)
-          &quot;Array Partial&quot;
-        else
-          begin
-            render_partial_without_array_support(partial_path, local_assigns, deprecated_local_assigns)
-          rescue ArgumentError
-            render_partial_without_array_support(partial_path)
-          end
-        end
-      end
-
-      alias :render_partial_without_array_support :render_partial
-      alias :render_partial :render_template_with_partial_with_array_support
-    end
-
-    @array = ['Alice', 'Bob']
-    assigns[:array] = @array
-  end
-
-  after(:each) do
-    module ActionView::Partials
-      alias :render_template_with_partial_with_array_support :render_partial
-      alias :render_partial :render_partial_without_array_support
-      undef render_template_with_partial_with_array_support
-    end
+    renderable_object = Object.new
+    renderable_object.stub!(:name).and_return(&quot;Renderable Object&quot;)
+    assigns[:array] = [renderable_object]
   end
 
-  it &quot;should render have the array passed through to render_partial without modification&quot; do
+  it &quot;should render the array passed through to render_partial without modification&quot; do
     render &quot;view_spec/template_with_partial_with_array&quot; 
-    response.body.should match(/^Array Partial$/)
+    response.body.should match(/^Renderable Object$/)
   end
 end
 </diff>
      <filename>spec/rails/example/view_spec_spec.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>f909c0d9af01a33ab5a842715e195b3c3b8e7fcd</id>
    </parent>
  </parents>
  <author>
    <name>David Chelimsky</name>
    <email>david@david-chelimskys-macbook-pro.local</email>
  </author>
  <url>http://github.com/dchelimsky/rspec-rails/commit/b408c45fbf4369f528bf1ed8c2ae66e5b703dfe0</url>
  <id>b408c45fbf4369f528bf1ed8c2ae66e5b703dfe0</id>
  <committed-date>2008-08-24T08:18:14-07:00</committed-date>
  <authored-date>2008-08-24T08:18:14-07:00</authored-date>
  <message>reduce monkey patching of rails in code example for render :partial =&gt; array</message>
  <tree>37e0576bfb9c3d5ac50d1fbc1c6491cf15f8403b</tree>
  <committer>
    <name>David Chelimsky</name>
    <email>david@david-chelimskys-macbook-pro.local</email>
  </committer>
</commit>
