summaryrefslogtreecommitdiffstats
path: root/test/functional/projects_controller_test.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2012-05-01 10:19:06 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2012-05-01 10:19:06 +0000
commitf54ecfc55f78f320018514cca7e07eceb896c69d (patch)
treeb43b555d7a3b47790257ee03fcf26859e171cd8d /test/functional/projects_controller_test.rb
parent45093230a9c6328751a5604983239f6684e7bec7 (diff)
downloadredmine-f54ecfc55f78f320018514cca7e07eceb896c69d.tar.gz
redmine-f54ecfc55f78f320018514cca7e07eceb896c69d.zip
Fixed that sidebar with hook content only should not be hidden.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9598 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/functional/projects_controller_test.rb')
-rw-r--r--test/functional/projects_controller_test.rb19
1 files changed, 0 insertions, 19 deletions
diff --git a/test/functional/projects_controller_test.rb b/test/functional/projects_controller_test.rb
index 8f2d56767..f8a3b844d 100644
--- a/test/functional/projects_controller_test.rb
+++ b/test/functional/projects_controller_test.rb
@@ -520,23 +520,4 @@ class ProjectsControllerTest < ActionController::TestCase
assert_response :success
assert_template 'show'
end
-
- # A hook that is manually registered later
- class ProjectBasedTemplate < Redmine::Hook::ViewListener
- def view_layouts_base_html_head(context)
- # Adds a project stylesheet
- stylesheet_link_tag(context[:project].identifier) if context[:project]
- end
- end
- # Don't use this hook now
- Redmine::Hook.clear_listeners
-
- def test_hook_response
- Redmine::Hook.add_listener(ProjectBasedTemplate)
- get :show, :id => 1
- assert_tag :tag => 'link', :attributes => {:href => '/stylesheets/ecookbook.css'},
- :parent => {:tag => 'head'}
-
- Redmine::Hook.clear_listeners
- end
end