@@ -1,16 +1,16 | |||
|
1 |
# |
|
|
2 |
# Copyright (C) 2006-20 |
|
|
1 | # Redmine - project management software | |
|
2 | # Copyright (C) 2006-2011 Jean-Philippe Lang | |
|
3 | 3 | # |
|
4 | 4 | # This program is free software; you can redistribute it and/or |
|
5 | 5 | # modify it under the terms of the GNU General Public License |
|
6 | 6 | # as published by the Free Software Foundation; either version 2 |
|
7 | 7 | # of the License, or (at your option) any later version. |
|
8 |
# |
|
|
8 | # | |
|
9 | 9 | # This program is distributed in the hope that it will be useful, |
|
10 | 10 | # but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
11 | 11 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
12 | 12 | # GNU General Public License for more details. |
|
13 |
# |
|
|
13 | # | |
|
14 | 14 | # You should have received a copy of the GNU General Public License |
|
15 | 15 | # along with this program; if not, write to the Free Software |
|
16 | 16 | # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
@@ -20,7 +20,7 require File.expand_path('../../../../test_helper', __FILE__) | |||
|
20 | 20 | class Redmine::Hook::ManagerTest < ActiveSupport::TestCase |
|
21 | 21 | |
|
22 | 22 | fixtures :issues |
|
23 | ||
|
23 | ||
|
24 | 24 | # Some hooks that are manually registered in these tests |
|
25 | 25 | class TestHook < Redmine::Hook::ViewListener; end |
|
26 | 26 | |
@@ -35,13 +35,13 class Redmine::Hook::ManagerTest < ActiveSupport::TestCase | |||
|
35 | 35 | 'Test hook 2 listener.' |
|
36 | 36 | end |
|
37 | 37 | end |
|
38 | ||
|
38 | ||
|
39 | 39 | class TestHook3 < TestHook |
|
40 | 40 | def view_layouts_base_html_head(context) |
|
41 | 41 | "Context keys: #{context.keys.collect(&:to_s).sort.join(', ')}." |
|
42 | 42 | end |
|
43 | 43 | end |
|
44 | ||
|
44 | ||
|
45 | 45 | class TestLinkToHook < TestHook |
|
46 | 46 | def view_layouts_base_html_head(context) |
|
47 | 47 | link_to('Issues', :controller => 'issues') |
@@ -166,7 +166,7 class Redmine::Hook::ManagerTest < ActiveSupport::TestCase | |||
|
166 | 166 | end |
|
167 | 167 | |
|
168 | 168 | def view_hook_helper |
|
169 |
@view_hook_helper ||= TestHookHelperView.new(R |
|
|
169 | @view_hook_helper ||= TestHookHelperView.new(Rails.root + '/app/views') | |
|
170 | 170 | end |
|
171 | 171 | end |
|
172 | 172 |
General Comments 0
You need to be logged in to leave comments.
Login now