Skip to content

Commit

Permalink
[karmi#262] Simplified highlighting tests, improved test case name
Browse files Browse the repository at this point in the history
  • Loading branch information
karmi committed Apr 28, 2012
1 parent af1317d commit e5a0a1c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/integration/highlight_test.rb
Expand Up @@ -21,10 +21,10 @@ class HighlightIntegrationTest < Test::Unit::TestCase
assert doc.highlight.title.to_s.include?('<em>'), "Highlight does not include default highlight tag"
end

should "add 'highlight' with more than one field" do
should "highlight multiple fields with custom highlight tag" do
s = Tire.search('articles-test') do
query { string 'Two OR ruby' }
highlight :tags => {}, :title => {}, :options => { :tag => '<strong>' }
highlight :tags, :title, :options => { :tag => '<strong>' }
end

doc = s.results.first
Expand Down

0 comments on commit e5a0a1c

Please sign in to comment.