diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2009-02-21 21:17:17 -0800 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2009-02-21 21:17:17 -0800 |
commit | 57cca81caea7a6ffccc6f6a4df411f05845b622e (patch) | |
tree | 50311a3902075cbd475963700e9d899f6fdaf896 | |
parent | b6c8379834cb10564349967b08012b87d1f4fe0e (diff) | |
download | rails-57cca81caea7a6ffccc6f6a4df411f05845b622e.tar.gz rails-57cca81caea7a6ffccc6f6a4df411f05845b622e.tar.bz2 rails-57cca81caea7a6ffccc6f6a4df411f05845b622e.zip |
Don't depend on project.developers ordering
-rw-r--r-- | actionpack/test/activerecord/render_partial_with_record_identification_test.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/actionpack/test/activerecord/render_partial_with_record_identification_test.rb b/actionpack/test/activerecord/render_partial_with_record_identification_test.rb index 147b270808..0a596c7ae0 100644 --- a/actionpack/test/activerecord/render_partial_with_record_identification_test.rb +++ b/actionpack/test/activerecord/render_partial_with_record_identification_test.rb @@ -53,7 +53,7 @@ class RenderPartialWithRecordIdentificationTest < ActiveRecordTestCase def test_rendering_partial_with_has_many_and_belongs_to_association get :render_with_has_many_and_belongs_to_association assert_template 'projects/_project' - assert_equal 'Active RecordActive Controller', @response.body + assert_equal assigns(:developer).projects.map(&:name).join, @response.body end def test_rendering_partial_with_has_many_association @@ -82,7 +82,7 @@ class RenderPartialWithRecordIdentificationTest < ActiveRecordTestCase def test_render_with_record_collection_and_spacer_template get :render_with_record_collection_and_spacer_template - assert_equal 'Active Recordonly partialActive Controller', @response.body + assert_equal assigns(:developer).projects.map(&:name).join('only partial'), @response.body end def test_rendering_partial_with_has_one_association |