aboutsummaryrefslogtreecommitdiffstats
path: root/spec/controllers/track_controller_spec.rb
diff options
context:
space:
mode:
authorfrancis <francis>2009-03-16 20:39:18 +0000
committerfrancis <francis>2009-03-16 20:39:18 +0000
commit3a3924462ae25759608b12d1066a424e1efe4480 (patch)
treecf51b62cf7a06ae845ea82b0ddb864c2a540183c /spec/controllers/track_controller_spec.rb
parent77cfff420f0cb2444cf2e44d74f19093445f5421 (diff)
It didn't seem to rebuild unless I put it in begin like this.
Diffstat (limited to 'spec/controllers/track_controller_spec.rb')
-rw-r--r--spec/controllers/track_controller_spec.rb6
1 files changed, 5 insertions, 1 deletions
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