Fixed that content_for does not work in Hook.render_on (#11105).

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9785 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang
2012-06-09 09:19:15 +00:00
parent 8b381e3bd4
commit d21bacb01d
3 changed files with 34 additions and 4 deletions

View File

@@ -89,7 +89,7 @@ class Redmine::Hook::ManagerTest < ActionView::TestCase
def test_call_hook_with_context
@hook_module.add_listener(TestHook3)
assert_equal ['Context keys: bar, controller, foo, project, request.'],
assert_equal ['Context keys: bar, controller, foo, hook_caller, project, request.'],
hook_helper.call_hook(:view_layouts_base_html_head, :foo => 1, :bar => 'a')
end