diff options
author | David Chelimsky <dchelimsky@gmail.com> | 2010-05-25 00:34:55 -0500 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2010-05-26 08:49:57 +0200 |
commit | 163152bfd0ea5344472d24b6f89e8c957dbd66f5 (patch) | |
tree | a6fe0f8f81b3c0a6ea1965f6dfb7260da0dd7c26 /actionpack/test/template | |
parent | e3549a80549326049222c0916926a906d2638490 (diff) | |
download | rails-163152bfd0ea5344472d24b6f89e8c957dbd66f5.tar.gz rails-163152bfd0ea5344472d24b6f89e8c957dbd66f5.tar.bz2 rails-163152bfd0ea5344472d24b6f89e8c957dbd66f5.zip |
Support configuration of controller.controller_path on instances of
ActionView::TestCase::TestController without stubs. Just say:
@controller.controller_path = "path/i/need/for/this/test"
[#4697 state:resolved]
Signed-off-by: José Valim <jose.valim@gmail.com>
Diffstat (limited to 'actionpack/test/template')
-rw-r--r-- | actionpack/test/template/test_case_test.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/actionpack/test/template/test_case_test.rb b/actionpack/test/template/test_case_test.rb index a4fb9f22bf..25dbc04ce1 100644 --- a/actionpack/test/template/test_case_test.rb +++ b/actionpack/test/template/test_case_test.rb @@ -112,7 +112,7 @@ module ActionView end end - TestController.stubs(:controller_path).returns('test') + @controller.controller_path = 'test' @customers = [stub(:name => 'Eloy'), stub(:name => 'Manfred')] assert_match /Hello: EloyHello: Manfred/, render(:partial => 'test/from_helper') @@ -161,7 +161,7 @@ module ActionView end test "is able to render partials from templates and also use instance variables" do - TestController.stubs(:controller_path).returns('test') + @controller.controller_path = "test" @customers = [stub(:name => 'Eloy'), stub(:name => 'Manfred')] assert_match /Hello: EloyHello: Manfred/, render(:file => 'test/list') |