Rails3.1: test: include ERB::Util in unit/helpers/search_helper_test.rb
undefined method `h' error raises on Rails 3.1.3 and Ruby 1.8.7. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8467 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
e7de511bbc
commit
1b61fbf739
@ -21,6 +21,7 @@ require File.expand_path('../../../test_helper', __FILE__)
|
|||||||
|
|
||||||
class SearchHelperTest < ActionView::TestCase
|
class SearchHelperTest < ActionView::TestCase
|
||||||
include SearchHelper
|
include SearchHelper
|
||||||
|
include ERB::Util
|
||||||
|
|
||||||
def test_highlight_single_token
|
def test_highlight_single_token
|
||||||
assert_equal 'This is a <span class="highlight token-0">token</span>.',
|
assert_equal 'This is a <span class="highlight token-0">token</span>.',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user