Project

General

Profile

« Previous | Next » 

Revision 13414

Added by Toshi MARUYAMA almost 11 years ago

remove unneeded String#mb_chars from SearchHelper

Test fails randomly.

  1) Error:
SearchHelperTest#test_highlight_multibyte:
ArgumentError: invalid byte sequence in UTF-8
    app/helpers/search_helper.rb:36:in `block in highlight_tokens'
    app/helpers/search_helper.rb:26:in `each'
    app/helpers/search_helper.rb:26:in `each_with_index'
    app/helpers/search_helper.rb:26:in `highlight_tokens'
    test/unit/helpers/search_helper_test.rb:46:in `test_highlight_multibyte'

String#mb_chars is for Ruby 1.8 compatibility.
Rails4 dropped Ruby 1.8 support.

  • added
  • modified
  • copied
  • renamed
  • deleted