diff options
author | David Chelimsky <dchelimsky@gmail.com> | 2010-06-08 15:18:02 -0400 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2010-06-08 21:25:31 +0200 |
commit | bdcf70cca89df906a3510464ef46a44646fd29a3 (patch) | |
tree | df6f8312491ca8063e5917886811a512dcd45901 /actionpack/test | |
parent | ab2877cbe89e266ee986fc12e603abd93ac017ad (diff) | |
download | rails-bdcf70cca89df906a3510464ef46a44646fd29a3.tar.gz rails-bdcf70cca89df906a3510464ef46a44646fd29a3.tar.bz2 rails-bdcf70cca89df906a3510464ef46a44646fd29a3.zip |
Memoize the object returned by _view in ActionView::TestCase::Behavior
[#4799 state:resolved]
Signed-off-by: José Valim <jose.valim@gmail.com>
Diffstat (limited to 'actionpack/test')
-rw-r--r-- | actionpack/test/template/test_case_test.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/actionpack/test/template/test_case_test.rb b/actionpack/test/template/test_case_test.rb index 16e5ee4f72..9b50ea8a42 100644 --- a/actionpack/test/template/test_case_test.rb +++ b/actionpack/test/template/test_case_test.rb @@ -37,6 +37,10 @@ module ActionView include SharedTests test_case = self + test "memoizes the _view" do + assert_same _view, _view + end + test "works without testing a helper module" do assert_equal 'Eloy', render('developers/developer', :developer => stub(:name => 'Eloy')) end |