diff options
author | Pratik Naik <pratiknaik@gmail.com> | 2008-03-05 02:03:24 +0000 |
---|---|---|
committer | Pratik Naik <pratiknaik@gmail.com> | 2008-03-05 02:03:24 +0000 |
commit | a96272a0c59b75a6838936af1eb7568b6136945a (patch) | |
tree | 12b69a7d678e513f0a43037dfe3f407906fb8415 /actionpack/test/controller | |
parent | 89ee5d63d039af6770014a3bfdc4a743be9a429c (diff) | |
download | rails-a96272a0c59b75a6838936af1eb7568b6136945a.tar.gz rails-a96272a0c59b75a6838936af1eb7568b6136945a.tar.bz2 rails-a96272a0c59b75a6838936af1eb7568b6136945a.zip |
Moved template handlers related code from ActionView::Base to ActionView::Template
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8981 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/test/controller')
-rw-r--r-- | actionpack/test/controller/custom_handler_test.rb | 4 | ||||
-rw-r--r-- | actionpack/test/controller/layout_test.rb | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/actionpack/test/controller/custom_handler_test.rb b/actionpack/test/controller/custom_handler_test.rb index cdde00cccc..cf1e2361bd 100644 --- a/actionpack/test/controller/custom_handler_test.rb +++ b/actionpack/test/controller/custom_handler_test.rb @@ -14,8 +14,8 @@ end class CustomHandlerTest < Test::Unit::TestCase def setup - ActionView::Base.register_template_handler "foo", CustomHandler - ActionView::Base.register_template_handler :foo2, CustomHandler + ActionView::Template.register_template_handler "foo", CustomHandler + ActionView::Template.register_template_handler :foo2, CustomHandler @view = ActionView::Base.new end diff --git a/actionpack/test/controller/layout_test.rb b/actionpack/test/controller/layout_test.rb index 56d7f69774..c8507af532 100644 --- a/actionpack/test/controller/layout_test.rb +++ b/actionpack/test/controller/layout_test.rb @@ -40,7 +40,7 @@ class MabView < ActionView::TemplateHandler end end -ActionView::Base::register_template_handler :mab, MabView +ActionView::Template::register_template_handler :mab, MabView class LayoutAutoDiscoveryTest < Test::Unit::TestCase def setup |