diff options
author | Carl Lerche <carllerche@mac.com> | 2010-09-13 12:51:42 -0700 |
---|---|---|
committer | Carl Lerche <carllerche@mac.com> | 2010-09-13 12:51:42 -0700 |
commit | 84d0c30cea243f020aa7437a2f0313a9b3f13ec4 (patch) | |
tree | 07e07f5d8131f44d29dbbbc68e5a705bfad1a5b4 /actionpack/test/template | |
parent | 4eb89873c9ba4032c07447e5b454fcf8f548e671 (diff) | |
download | rails-84d0c30cea243f020aa7437a2f0313a9b3f13ec4.tar.gz rails-84d0c30cea243f020aa7437a2f0313a9b3f13ec4.tar.bz2 rails-84d0c30cea243f020aa7437a2f0313a9b3f13ec4.zip |
Allow view helper's #initialize method to be called. [#5061 state:resolved]
Diffstat (limited to 'actionpack/test/template')
-rw-r--r-- | actionpack/test/template/test_case_test.rb | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/actionpack/test/template/test_case_test.rb b/actionpack/test/template/test_case_test.rb index eaa0c54f5a..f766c2c0b6 100644 --- a/actionpack/test/template/test_case_test.rb +++ b/actionpack/test/template/test_case_test.rb @@ -253,4 +253,17 @@ module ActionView end end end + + module AHelperWithInitialize + def initialize(*) + super + @called_initialize = true + end + end + + class AHelperWithInitializeTest < ActionView::TestCase + test "the helper's initialize was actually called" do + assert @called_initialize + end + end end |