diff options
author | Louise Crow <louise.crow@gmail.com> | 2015-04-13 16:17:07 +0100 |
---|---|---|
committer | Louise Crow <louise.crow@gmail.com> | 2015-04-13 16:17:07 +0100 |
commit | c4e296753ff8c55385680601ae9aa51539351c5e (patch) | |
tree | 334fca1da42f2f22f8ef4aee6349b9af7ba508ff | |
parent | e75fd6b19616190af7ad12c25fb8214ce006c333 (diff) |
Make sure xapian index is initialized before specs run.
-rw-r--r-- | spec/integration/xapian_search_highlighting_spec.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/integration/xapian_search_highlighting_spec.rb b/spec/integration/xapian_search_highlighting_spec.rb index 65a34cf91..b2994eb31 100644 --- a/spec/integration/xapian_search_highlighting_spec.rb +++ b/spec/integration/xapian_search_highlighting_spec.rb @@ -3,6 +3,10 @@ require File.expand_path(File.dirname(__FILE__) + '/../spec_helper') describe 'highlighting search results' do include HighlightHelper + before do + get_fixtures_xapian_index + end + it 'ignores stopwords' do phrase = 'department of humpadinking' search = ActsAsXapian::Search.new([PublicBody], phrase, :limit => 1) |