aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLouise Crow <louise.crow@gmail.com>2015-04-13 16:17:07 +0100
committerLouise Crow <louise.crow@gmail.com>2015-04-13 16:17:07 +0100
commitc4e296753ff8c55385680601ae9aa51539351c5e (patch)
tree334fca1da42f2f22f8ef4aee6349b9af7ba508ff
parente75fd6b19616190af7ad12c25fb8214ce006c333 (diff)
Make sure xapian index is initialized before specs run.
-rw-r--r--spec/integration/xapian_search_highlighting_spec.rb4
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)