diff --git a/test/unit/lib/redmine/hook_test.rb b/test/unit/lib/redmine/hook_test.rb index 27e4e2e98..14782683a 100644 --- a/test/unit/lib/redmine/hook_test.rb +++ b/test/unit/lib/redmine/hook_test.rb @@ -166,7 +166,7 @@ class Redmine::Hook::ManagerTest < ActiveSupport::TestCase end def view_hook_helper - @view_hook_helper ||= TestHookHelperView.new(RAILS_ROOT + '/app/views') + @view_hook_helper ||= TestHookHelperView.new(Rails.root.to_s + '/app/views') end end