diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2011-07-23 21:00:11 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2011-07-23 21:00:11 -0700 |
commit | d33eb07543aed1a07f9efe40ff7edc983b401957 (patch) | |
tree | ceaaa5d7ba9edca54e599d80bd44840511333860 /actionpack/test | |
parent | d89a33d16216c9c3be719bda735bdc7a7f4bda00 (diff) | |
parent | dc1b0fd957246a05f7b490aa03970bcdcc9c48ba (diff) | |
download | rails-d33eb07543aed1a07f9efe40ff7edc983b401957.tar.gz rails-d33eb07543aed1a07f9efe40ff7edc983b401957.tar.bz2 rails-d33eb07543aed1a07f9efe40ff7edc983b401957.zip |
Merge pull request #2233 from gramos/fix-issue-1951-master
Fix issue 1951 master Namespaced model partial_path is wrong in namespaced controllers
Diffstat (limited to 'actionpack/test')
-rw-r--r-- | actionpack/test/controller/render_test.rb | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/actionpack/test/controller/render_test.rb b/actionpack/test/controller/render_test.rb index be59da9105..ce4b407c7d 100644 --- a/actionpack/test/controller/render_test.rb +++ b/actionpack/test/controller/render_test.rb @@ -14,6 +14,14 @@ module Fun end end +module Quiz + class QuestionsController < ActionController::Base + def new + render :partial => Quiz::Question.new("Namespaced Partial") + end + end +end + class TestController < ActionController::Base protect_from_forgery @@ -1251,6 +1259,12 @@ class RenderTest < ActionController::TestCase assert_template('fun/games/_form') end + def test_namespaced_object_partial + @controller = Quiz::QuestionsController.new + get :new + assert_equal "Namespaced Partial", @response.body + end + def test_partial_collection get :partial_collection assert_equal "Hello: davidHello: mary", @response.body |