comparison test/unit/helpers/search_helper_test.rb @ 1526:404aa68d4227

Merge from live branch
author Chris Cannam
date Thu, 11 Sep 2014 12:46:20 +0100
parents e248c7af89ec
children
comparison
equal deleted inserted replaced
1493:a5f2bdf3b486 1526:404aa68d4227
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-2014 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))