<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -26,10 +26,10 @@ module Arts
     unless content.blank?
       case content
         when Regexp
-          assert_match Regexp.new(&quot;new Insertion\.#{position.to_s.camelize}(.*#{item_id}.*,.*#{content.source}.*);&quot;),
+          assert_match Regexp.new(&quot;Element.insert\\(\&quot;#{item_id}\&quot;,\\ \\{\\ #{position.to_s}.*#{content.source}.*&quot;),
                        @response.body
         when String
-          assert_response_contains(&quot;new Insertion.#{position.to_s.camelize}(\&quot;#{item_id}\&quot;, #{content});&quot;,
+          assert_response_contains(&quot;Element.insert(\&quot;#{item_id}\&quot;, { #{position.to_s}: #{content} });&quot;,
                  &quot;No insert_html call found for \n&quot; +
                  &quot;     position: '#{position}' id: '#{item_id}' \ncontent: \n&quot; +
                  &quot;#{content}\n&quot; +
@@ -38,7 +38,7 @@ module Arts
           raise &quot;Invalid content type&quot;
       end
     else
-      assert_match Regexp.new(&quot;new Insertion\.#{position.to_s.camelize}(.*#{item_id}.*,.*?);&quot;), 
+      assert_match Regexp.new(&quot;Element.insert\\(\&quot;#{item_id}\&quot;,\\ \\{\\ #{position.to_s}.*\\);&quot;), 
                    @response.body
     end
   end</diff>
      <filename>lib/arts.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>305478855d1a9b2158feb5dc26bbf123bd00cadc</id>
    </parent>
  </parents>
  <author>
    <name>Tim Connor</name>
    <email>tconnor@tim-connors-imac.local</email>
  </author>
  <url>http://github.com/timocratic/arts/commit/1ccc418dddd445e25c206be7ce22c51aaca47587</url>
  <id>1ccc418dddd445e25c206be7ce22c51aaca47587</id>
  <committed-date>2008-09-18T15:47:51-07:00</committed-date>
  <authored-date>2008-09-18T15:47:51-07:00</authored-date>
  <message>Patching :insert_html to work with Rails 2.1 stable changes</message>
  <tree>b05983815c4f154137f95b4bbe59c5b4f8b1ab8c</tree>
  <committer>
    <name>Tim Connor</name>
    <email>tconnor@tim-connors-imac.local</email>
  </committer>
</commit>
