diff options
author | Louise Crow <louise.crow@gmail.com> | 2013-07-29 16:32:51 +0100 |
---|---|---|
committer | Louise Crow <louise.crow@gmail.com> | 2013-07-29 16:32:51 +0100 |
commit | 6b6ada3571d9d05d8b2c6a59b5134e634775f617 (patch) | |
tree | b81a5421bb40de9b603c5a386b5b44a02b1e931b /spec/models/xapian_spec.rb | |
parent | b17910d494ae1a459c83b43e4b668ca4e80fc680 (diff) | |
parent | a73ffdc2a6801961ce2b5c9719651231dd484021 (diff) |
Merge branch 'feature/localisation-fixes' into rails-3-develop
Diffstat (limited to 'spec/models/xapian_spec.rb')
-rw-r--r-- | spec/models/xapian_spec.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/spec/models/xapian_spec.rb b/spec/models/xapian_spec.rb index c40334142..7aab9cdc6 100644 --- a/spec/models/xapian_spec.rb +++ b/spec/models/xapian_spec.rb @@ -373,6 +373,11 @@ end # I would expect ActsAsXapian to have some tests under vendor/plugins/acts_as_xapian, but # it looks like this is not the case. Putting a test here instead. describe ActsAsXapian::Search, "#words_to_highlight" do + before(:each) do + load_raw_emails_data + get_fixtures_xapian_index + end + it "should return a list of words used in the search" do s = ActsAsXapian::Search.new([PublicBody], "albatross words", :limit => 100) s.words_to_highlight.should == ["albatross", "words"] |