diff options
author | Francis Irving <francis@mysociety.org> | 2009-12-07 21:49:16 +0000 |
---|---|---|
committer | Francis Irving <francis@mysociety.org> | 2009-12-07 21:49:16 +0000 |
commit | af9c4ee5daaef5dcc0c2bd220b0d60307460b2a1 (patch) | |
tree | 1816c00e837c879e075b0a50db7fc12b1eaa4a98 | |
parent | 772b2bb92a889257b29c8c4956232f32c86a7a07 (diff) |
Function to call Xapian index update.
-rw-r--r-- | spec/spec_helper.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 005ae8174..2b1fbac53 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -42,6 +42,11 @@ def rebuild_xapian_index Kernel.system(rebuild_name) or raise "failed to launch #{rebuild_name}, error bitcode #{$?}, exit status: #{$?.exitstatus}" end +def update_xapian_index + update_name = File.dirname(__FILE__) + '/../script/update-xapian-index' + Kernel.system(update_name) or raise "failed to launch #{update_name}, error bitcode #{$?}, exit status: #{$?.exitstatus}" +end + # Validate an entire HTML page def validate_html(html) $tempfilecount = $tempfilecount + 1 |