aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLouise Crow <louise.crow@gmail.com>2011-02-17 13:49:42 +0000
committerLouise Crow <louise.crow@gmail.com>2011-02-17 13:49:42 +0000
commit313a75e7b8ff3378655f05892e289a86dac9a1c8 (patch)
treebd36fdfe8978f3dcc02464547872b59af3515a42
parentd667eefa7313cef36ae156a0a6f6eba2da8478d1 (diff)
Reindexing xapian before running track alert spec
-rw-r--r--spec/controllers/track_controller_spec.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/controllers/track_controller_spec.rb b/spec/controllers/track_controller_spec.rb
index 13c3d4716..3bcda19b0 100644
--- a/spec/controllers/track_controller_spec.rb
+++ b/spec/controllers/track_controller_spec.rb
@@ -31,6 +31,10 @@ describe TrackController, "when sending alerts for a track" do
integrate_views
fixtures :info_requests, :outgoing_messages, :incoming_messages, :raw_emails, :info_request_events, :users, :track_things, :track_things_sent_emails
include LinkToHelper # for main_url
+
+ before do
+ rebuild_xapian_index
+ end
it "should send alerts" do
# set the time the comment event happened at to within the last week