aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortony <tony>2009-03-22 08:41:50 +0000
committertony <tony>2009-03-22 08:41:50 +0000
commitc96e17bd6e1f4f91bcf6eaa1f6cf22bc2afe0caa (patch)
tree1867228af3ca6ea65c480b62db7001f71287a862
parent92a54807624faa777c5c2dfa5792dddb40208d4e (diff)
Only rebuild the Xapian index once, rather than for each test, as we're
not modifying the index between them.
-rw-r--r--spec/models/public_body_spec.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/spec/models/public_body_spec.rb b/spec/models/public_body_spec.rb
index 50c34fdc0..b2a62cd8d 100644
--- a/spec/models/public_body_spec.rb
+++ b/spec/models/public_body_spec.rb
@@ -28,11 +28,10 @@ describe PublicBody, " when saving" do
end
end
-
describe PublicBody, " when indexing with Xapian" do
fixtures :public_bodies
- before do
+ before(:all) do
rebuild_xapian_index
end