diff options
Diffstat (limited to 'spec/spec_helper.rb')
-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 8945bc7b2..4400c0a28 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -30,6 +30,11 @@ def receive_incoming_mail(email_name, email_to) RequestMailer.receive(content) end +def rebuild_xapian_index + rebuild_name = File.dirname(__FILE__) + '/../script/rebuild-xapian-index' + Kernel.system(rebuild_name) or raise "failed to launch rebuild-xapian-index" +end + # Monkeypatch! Validate HTML in tests. $html_validation_script = "/usr/bin/validate" # from Debian package wdg-html-validator if $tempfilecount.nil? |