diff options
Diffstat (limited to 'spec/controllers/general_controller_spec.rb')
-rw-r--r-- | spec/controllers/general_controller_spec.rb | 8 |
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 |