diff options
author | José Valim <jose.valim@gmail.com> | 2010-10-14 09:27:18 +0200 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2010-10-14 09:27:18 +0200 |
commit | 37d78028b235f04b2d3ca5cd88b7e1e0ad218684 (patch) | |
tree | d89694e106cbc3353ac1b0eeaf257ea91b3a7b01 /actionpack/test/template | |
parent | c7aea81a39e130bfddd26537dea5f3626e2a009e (diff) | |
download | rails-37d78028b235f04b2d3ca5cd88b7e1e0ad218684.tar.gz rails-37d78028b235f04b2d3ca5cd88b7e1e0ad218684.tar.bz2 rails-37d78028b235f04b2d3ca5cd88b7e1e0ad218684.zip |
render :once should consider the current controller prefix.
Diffstat (limited to 'actionpack/test/template')
-rw-r--r-- | actionpack/test/template/log_subscriber_test.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/actionpack/test/template/log_subscriber_test.rb b/actionpack/test/template/log_subscriber_test.rb index 6fb8d39818..435936b19f 100644 --- a/actionpack/test/template/log_subscriber_test.rb +++ b/actionpack/test/template/log_subscriber_test.rb @@ -57,7 +57,7 @@ class AVLogSubscriberTest < ActiveSupport::TestCase end def test_render_partial_with_implicit_path - @view.stubs(:controller_path).returns("test") + @view.stubs(:controller_prefix).returns("test") @view.render(Customer.new("david"), :greeting => "hi") wait @@ -74,7 +74,7 @@ class AVLogSubscriberTest < ActiveSupport::TestCase end def test_render_collection_with_implicit_path - @view.stubs(:controller_path).returns("test") + @view.stubs(:controller_prefix).returns("test") @view.render([ Customer.new("david"), Customer.new("mary") ], :greeting => "hi") wait @@ -83,7 +83,7 @@ class AVLogSubscriberTest < ActiveSupport::TestCase end def test_render_collection_template_without_path - @view.stubs(:controller_path).returns("test") + @view.stubs(:controller_prefix).returns("test") @view.render([ GoodCustomer.new("david"), Customer.new("mary") ], :greeting => "hi") wait |