From 3a3924462ae25759608b12d1066a424e1efe4480 Mon Sep 17 00:00:00 2001 From: francis Date: Mon, 16 Mar 2009 20:39:18 +0000 Subject: It didn't seem to rebuild unless I put it in begin like this. --- spec/controllers/track_controller_spec.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'spec/controllers/track_controller_spec.rb') diff --git a/spec/controllers/track_controller_spec.rb b/spec/controllers/track_controller_spec.rb index bd91edf61..1e273b3fe 100644 --- a/spec/controllers/track_controller_spec.rb +++ b/spec/controllers/track_controller_spec.rb @@ -59,9 +59,13 @@ end describe TrackController, "when viewing RSS feed for a track" do integrate_views fixtures :info_requests, :outgoing_messages, :incoming_messages, :raw_emails, :info_request_events, :users, :track_things, :comments, :public_bodies - rebuild_xapian_index + + before do + rebuild_xapian_index + end it "should get the RSS feed" do + track_thing = track_things(:track_fancy_dog_request) get :track_request, :feed => 'feed', :url_title => track_thing.info_request.url_title -- cgit v1.2.3