From c96e17bd6e1f4f91bcf6eaa1f6cf22bc2afe0caa Mon Sep 17 00:00:00 2001 From: tony Date: Sun, 22 Mar 2009 08:41:50 +0000 Subject: Only rebuild the Xapian index once, rather than for each test, as we're not modifying the index between them. --- spec/models/public_body_spec.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'spec/models') 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 -- cgit v1.2.3