<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -24,7 +24,7 @@ module ActionView
         test_case.class_eval do
           test &quot;helpers defined on ActionView::TestCase are available&quot; do
             assert test_case.ancestors.include?(ASharedTestHelper)
-            assert 'Holla!', from_shared_helper
+            assert_equal 'Holla!', from_shared_helper
           end
         end
       end
@@ -38,10 +38,15 @@ module ActionView
         assert_equal 'Eloy', render('developers/developer', :developer =&gt; stub(:name =&gt; 'Eloy'))
       end
 
+      test &quot;can render a layout with block&quot; do
+        assert_equal &quot;Before (ChrisCruft)\n!\nAfter&quot;,
+                      render(:layout =&gt; &quot;test/layout_for_partial&quot;, :locals =&gt; {:name =&gt; &quot;ChrisCruft&quot;}) {&quot;!&quot;}
+      end
+
       helper AnotherTestHelper
       test &quot;additional helper classes can be specified as in a controller&quot; do
         assert test_case.ancestors.include?(AnotherTestHelper)
-        assert 'Howdy!', from_another_helper
+        assert_equal 'Howdy!', from_another_helper
       end
     end
 
@@ -58,14 +63,14 @@ module ActionView
       helper AnotherTestHelper
       test &quot;additional helper classes can be specified as in a controller&quot; do
         assert test_case.ancestors.include?(AnotherTestHelper)
-        assert 'Howdy!', from_another_helper
+        assert_equal 'Howdy!', from_another_helper
 
         test_case.helper_class.module_eval do
           def render_from_helper
             from_another_helper
           end
         end
-        assert 'Howdy!', render(:partial =&gt; 'test/from_helper')
+        assert_equal 'Howdy!', render(:partial =&gt; 'test/from_helper')
       end
     end
 </diff>
      <filename>actionpack/test/template/test_case_test.rb</filename>
    </modified>
    <modified>
      <diff>@@ -250,6 +250,8 @@ module ActiveRecord
                 assign_nested_attributes_for_#{type}_association(:#{association_name}, attributes)
               end
             }, __FILE__, __LINE__
+
+            add_autosave_association_callbacks(reflection)
           else
             raise ArgumentError, &quot;No association found for name `#{association_name}'. Has it been defined yet?&quot;
           end</diff>
      <filename>activerecord/lib/active_record/nested_attributes.rb</filename>
    </modified>
    <modified>
      <diff>@@ -18,7 +18,7 @@ class Pirate &lt; ActiveRecord::Base
   has_many :treasure_estimates, :through =&gt; :treasures, :source =&gt; :price_estimates
 
   # These both have :autosave enabled because accepts_nested_attributes_for is used on them.
-  has_one :ship, :validate =&gt; true
+  has_one :ship
   has_one :non_validated_ship, :class_name =&gt; 'Ship'
   has_many :birds
   has_many :birds_with_method_callbacks, :class_name =&gt; &quot;Bird&quot;,</diff>
      <filename>activerecord/test/models/pirate.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,7 +1,7 @@
 class Ship &lt; ActiveRecord::Base
   self.record_timestamps = false
 
-  belongs_to :pirate, :validate =&gt; true
+  belongs_to :pirate
   has_many :parts, :class_name =&gt; 'ShipPart', :autosave =&gt; true
 
   accepts_nested_attributes_for :pirate, :allow_destroy =&gt; true, :reject_if =&gt; proc { |attributes| attributes.empty? }</diff>
      <filename>activerecord/test/models/ship.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>a595abff211eee97d75c51c085cfdc821b1edb46</id>
    </parent>
    <parent>
      <id>f125a34501e21b1e0da2b80d149df7a739482804</id>
    </parent>
  </parents>
  <author>
    <name>Joshua Peek</name>
    <email>josh@joshpeek.com</email>
  </author>
  <url>http://github.com/rails/rails/commit/c10f4ae01d91d1afc90b21d4bba51e59ae9a0625</url>
  <id>c10f4ae01d91d1afc90b21d4bba51e59ae9a0625</id>
  <committed-date>2009-11-08T14:03:15-08:00</committed-date>
  <authored-date>2009-11-08T14:03:15-08:00</authored-date>
  <message>Merge remote branch 'Fingertips/master'</message>
  <tree>67c0428c4a31452227bca75ba835a642bd01fd41</tree>
  <committer>
    <name>Joshua Peek</name>
    <email>josh@joshpeek.com</email>
  </committer>
</commit>
