class RenderPartialWithRecordIdentificationTest
Public Instance Methods
test_render_with_record()
click to toggle source
# File actionview/test/activerecord/render_partial_with_record_identification_test.rb, line 70 def test_render_with_record get :render_with_record assert_equal "David", @response.body end
test_render_with_record_collection()
click to toggle source
# File actionview/test/activerecord/render_partial_with_record_identification_test.rb, line 75 def test_render_with_record_collection get :render_with_record_collection assert_equal "DavidJamisfixture_3fixture_4fixture_5fixture_6fixture_7fixture_8fixture_9fixture_10Jamis", @response.body end
test_render_with_record_collection_and_spacer_template()
click to toggle source
# File actionview/test/activerecord/render_partial_with_record_identification_test.rb, line 80 def test_render_with_record_collection_and_spacer_template get :render_with_record_collection_and_spacer_template assert_equal Developer.find(1).projects.map(&:name).join("only partial"), @response.body end
test_rendering_partial_with_has_many_and_belongs_to_association()
click to toggle source
# File actionview/test/activerecord/render_partial_with_record_identification_test.rb, line 55 def test_rendering_partial_with_has_many_and_belongs_to_association get :render_with_has_many_and_belongs_to_association assert_equal Developer.find(1).projects.map(&:name).join, @response.body end
test_rendering_partial_with_has_many_association()
click to toggle source
# File actionview/test/activerecord/render_partial_with_record_identification_test.rb, line 60 def test_rendering_partial_with_has_many_association get :render_with_has_many_association assert_equal "Birdman is better!", @response.body end
test_rendering_partial_with_has_one_association()
click to toggle source
# File actionview/test/activerecord/render_partial_with_record_identification_test.rb, line 85 def test_rendering_partial_with_has_one_association mascot = Company.find(1).mascot get :render_with_has_one_association assert_equal mascot.name, @response.body end
test_rendering_partial_with_scope()
click to toggle source
# File actionview/test/activerecord/render_partial_with_record_identification_test.rb, line 65 def test_rendering_partial_with_scope get :render_with_scope assert_equal "Birdman is better!Nuh uh!", @response.body end