diff options
author | Louise Crow <louise.crow@gmail.com> | 2015-04-13 16:43:13 +0100 |
---|---|---|
committer | Louise Crow <louise.crow@gmail.com> | 2015-04-13 16:43:13 +0100 |
commit | 2299bfdf71f9e787d083920ddaf90b048641517a (patch) | |
tree | e33b1cf3cacf4ba2225c9c9135de4b4aa828e598 | |
parent | c51ee5f22a23a6475ffd921bcd9bcfe330c9a20c (diff) | |
parent | c4e296753ff8c55385680601ae9aa51539351c5e (diff) |
Merge branch 'fix-xapian-spec-failures' into rails-3-develop
-rw-r--r-- | spec/integration/xapian_search_highlighting_spec.rb | 4 | ||||
-rw-r--r-- | spec/spec_helper.rb | 7 |
2 files changed, 4 insertions, 7 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) diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 93bcfa1ba..4df1b5649 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -124,13 +124,6 @@ Spork.prefork do end end - # TODO: No idea what namespace/class/module to put this in - # Create a clean xapian index based on the fixture files and the raw_email data. - def create_fixtures_xapian_index - load_raw_emails_data - rebuild_xapian_index - end - # Use the before create job hook to simulate a race condition with # another process by creating an acts_as_xapian_job record for the # same model: |