comparison test/unit/helpers/search_helper_test.rb @ 1464:261b3d9a4903 redmine-2.4

Update to Redmine 2.4 branch rev 12663
author Chris Cannam
date Tue, 14 Jan 2014 14:37:42 +0000
parents 433d4f72a19b
children e248c7af89ec
comparison
equal deleted inserted replaced
1296:038ba2d95de8 1464:261b3d9a4903
1 # encoding: utf-8 1 # encoding: utf-8
2 # 2 #
3 # Redmine - project management software 3 # Redmine - project management software
4 # Copyright (C) 2006-2012 Jean-Philippe Lang 4 # Copyright (C) 2006-2013 Jean-Philippe Lang
5 # 5 #
6 # This program is free software; you can redistribute it and/or 6 # This program is free software; you can redistribute it and/or
7 # modify it under the terms of the GNU General Public License 7 # modify it under the terms of the GNU General Public License
8 # as published by the Free Software Foundation; either version 2 8 # as published by the Free Software Foundation; either version 2
9 # of the License, or (at your option) any later version. 9 # of the License, or (at your option) any later version.
19 19
20 require File.expand_path('../../../test_helper', __FILE__) 20 require File.expand_path('../../../test_helper', __FILE__)
21 21
22 class SearchHelperTest < ActionView::TestCase 22 class SearchHelperTest < ActionView::TestCase
23 include SearchHelper 23 include SearchHelper
24 include Redmine::I18n
24 include ERB::Util 25 include ERB::Util
25 26
26 def test_highlight_single_token 27 def test_highlight_single_token
27 assert_equal 'This is a <span class="highlight token-0">token</span>.', 28 assert_equal 'This is a <span class="highlight token-0">token</span>.',
28 highlight_tokens('This is a token.', %w(token)) 29 highlight_tokens('This is a token.', %w(token))