Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Don't depend on project.developers ordering

  • Loading branch information...
commit 57cca81caea7a6ffccc6f6a4df411f05845b622e 1 parent b6c8379
@jeremy jeremy authored
View
4 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 @@ def test_render_with_record_collection
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
Please sign in to comment.
Something went wrong with that request. Please try again.