aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/activerecord/render_partial_with_record_identification_test.rb
diff options
context:
space:
mode:
Diffstat (limited to 'actionpack/test/activerecord/render_partial_with_record_identification_test.rb')
-rw-r--r--actionpack/test/activerecord/render_partial_with_record_identification_test.rb3
1 files changed, 3 insertions, 0 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 1cfd2a2354..773018d445 100644
--- a/actionpack/test/activerecord/render_partial_with_record_identification_test.rb
+++ b/actionpack/test/activerecord/render_partial_with_record_identification_test.rb
@@ -34,6 +34,7 @@ class RenderPartialWithRecordIdentificationTest < ActiveRecordTestCase
render :partial => @developers
end
end
+ RenderPartialWithRecordIdentificationController.view_paths = [ File.dirname(__FILE__) + "/../fixtures/" ]
def setup
@controller = RenderPartialWithRecordIdentificationController.new
@@ -58,8 +59,10 @@ class RenderPartialWithRecordIdentificationTest < ActiveRecordTestCase
end
def test_rendering_partial_with_belongs_to_association
+ topic = Reply.find(1).topic
get :render_with_belongs_to_association
assert_template 'topics/_topic'
+ assert_equal topic.title, @response.body
end
def test_render_with_record