aboutsummaryrefslogtreecommitdiffstats
path: root/spec/controllers/general_controller_spec.rb
diff options
context:
space:
mode:
authortony <tony>2009-03-22 16:29:19 +0000
committertony <tony>2009-03-22 16:29:19 +0000
commitc5401945acc4ee80f723631c6bb262f07c3edde6 (patch)
treeba34c913b3988a975b47fe5921b4e6a8ecd6ce0a /spec/controllers/general_controller_spec.rb
parent86735f0985e415a3ecd490562415620bdd9465f7 (diff)
Rebuild in an :all
Diffstat (limited to 'spec/controllers/general_controller_spec.rb')
-rw-r--r--spec/controllers/general_controller_spec.rb8
1 files changed, 2 insertions, 6 deletions
diff --git a/spec/controllers/general_controller_spec.rb b/spec/controllers/general_controller_spec.rb
index 942f99db2..dbd925413 100644
--- a/spec/controllers/general_controller_spec.rb
+++ b/spec/controllers/general_controller_spec.rb
@@ -4,12 +4,8 @@ describe GeneralController, "when searching" do
integrate_views
fixtures :users, :outgoing_messages, :incoming_messages, :raw_emails, :info_requests, :info_request_events, :public_bodies, :comments
- before do
- # XXX - what is proper way to do this only once?
- if not $general_controller_built_xapian_index
- rebuild_xapian_index
- $general_controller_built_xapian_index = true
- end
+ before(:all) do
+ rebuild_xapian_index
end
it "should render the front page successfully" do