diff options
-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 |