@ -59,7 +59,7 @@ describe 'search/index', type: :helper do
context'with single token'do
let(:tokens){%w(token)}
let(:title){'This is a token.'}
let(:expected_title){'This is a <span class="highlight token-0">token</span>.'}
let(:expected_title){'This is a <span class="search-highlight token-0">token</span>.'}
it{is_expected.toeqexpected_title}
end
@ -67,7 +67,7 @@ describe 'search/index', type: :helper do
context'with multiple tokens'do
let(:tokens){%w(token another)}
let(:title){'This is a token and another token.'}
let(:expected_title){'This is a <span class="highlight token-0">token</span> and <span class="highlight token-1">another</span> <span class="highlight token-0">token</span>.'}
let(:expected_title){'This is a <span class="search-highlight token-0">token</span> and <span class="search-highlight token-1">another</span> <span class="search-highlight token-0">token</span>.'}
it{is_expected.toeqexpected_title}
end
@ -75,7 +75,7 @@ describe 'search/index', type: :helper do