diff options
author | tony <tony> | 2009-03-13 11:45:54 +0000 |
---|---|---|
committer | tony <tony> | 2009-03-13 11:45:54 +0000 |
commit | 987a0350240f3da0c48d8dfeebb2ad3870c11d52 (patch) | |
tree | eb19614e8b3f3ae12433400cf9d464724f1011f1 /spec/spec_helper.rb | |
parent | 92b0f3b4c8f62b6a3f0648ba27de11f40c247df0 (diff) |
Call rebuild_xapian_index in more tests to reduce order dependency
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? |