<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -31,7 +31,7 @@ describe Admin::VersionsController do
   
   describe &quot;GET 'diff'&quot; do
     it &quot; should be successful&quot; do
-      get 'diff', :id =&gt; pages(:published).versions.first.id
+      get 'diff', :id =&gt; pages(:published).versions.first.id, :format =&gt; :js
       response.should be_success
       response.layout.should be_nil
     end</diff>
      <filename>spec/controllers/admin/versions_controller_spec.rb</filename>
    </modified>
    <modified>
      <diff>@@ -78,11 +78,12 @@ describe &quot;/admin/pages/_diff.html.haml&quot; do
   
   it &quot;should show the parts' diffs&quot; do
     page = pages(:published)
-    page.parts = [{&quot;name&quot;=&gt;&quot;body&quot;, &quot;filter_id&quot;=&gt;&quot;&quot;, &quot;content&quot;=&gt;&quot;Changed body&quot;}]
+    expected_content = &quot;Changed body&quot;
+    page.parts_attributes = [page.parts.first.attributes.merge(&quot;content&quot; =&gt; expected_content)]
     page.save
     @version = page.versions.current
     render 'admin/pages/_diff.html.haml', :locals =&gt; {:version =&gt; @version}
-    response.should have_selector(&quot;div.page&quot;, :content =&gt; &quot;Changed body&quot;)
+    response.should have_selector(&quot;div.page&quot;, :content =&gt; expected_content)
   end
   
   it &quot;should have a changed layout&quot; do</diff>
      <filename>spec/views/admin/pages/_diff.html.haml_spec.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>cb7f8a8422fe10c4bf50d56bce65e1e0d08ec5ac</id>
    </parent>
  </parents>
  <author>
    <name>Jason Garber</name>
    <email>jg@jasongarber.com</email>
  </author>
  <url>http://github.com/jgarber/radiant-chronicle-extension/commit/ba69bcf59faf4edd4a030ce6f1be939229cd0f60</url>
  <id>ba69bcf59faf4edd4a030ce6f1be939229cd0f60</id>
  <committed-date>2009-06-29T08:09:38-07:00</committed-date>
  <authored-date>2009-06-29T08:09:38-07:00</authored-date>
  <message>Fix diff action.</message>
  <tree>4c441b23347d898e93d7542d982edc9bc67a6aed</tree>
  <committer>
    <name>Jason Garber</name>
    <email>jg@jasongarber.com</email>
  </committer>
</commit>
