aboutsummaryrefslogtreecommitdiffstats
path: root/spec/controllers/track_controller_spec.rb
diff options
context:
space:
mode:
authorDavid Cabo <david@calibea.com>2011-07-30 02:42:59 +0200
committerDavid Cabo <david@calibea.com>2011-07-30 02:42:59 +0200
commit13035996a5a794051507f5927cb2f00104be34c0 (patch)
tree54b65e55f796c54cb623422c7d0d979ecdf072ca /spec/controllers/track_controller_spec.rb
parenta4ee2cfdc61aefda87f3585187cedc6f283505a6 (diff)
parentfaa8c8ed4a3de3ad5b41dc63a2d32dd4c92a444e (diff)
Merge branch 'master' of github.com:sebbacon/alaveteli into asktheeu
Diffstat (limited to 'spec/controllers/track_controller_spec.rb')
-rw-r--r--spec/controllers/track_controller_spec.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/spec/controllers/track_controller_spec.rb b/spec/controllers/track_controller_spec.rb
index 0a8919268..f7002a9d4 100644
--- a/spec/controllers/track_controller_spec.rb
+++ b/spec/controllers/track_controller_spec.rb
@@ -37,6 +37,9 @@ 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, :public_bodies, :public_body_translations
include LinkToHelper # for main_url
+ before(:each) do
+ load_raw_emails_data(raw_emails)
+ end
before do
rebuild_xapian_index
@@ -100,6 +103,7 @@ describe TrackController, "when viewing RSS feed for a track" do
before do
rebuild_xapian_index
+ load_raw_emails_data(raw_emails)
end
it "should get the RSS feed" do
@@ -125,6 +129,7 @@ describe TrackController, "when viewing JSON version of a track feed" do
before do
rebuild_xapian_index
+ load_raw_emails_data(raw_emails)
end
it "should get the feed" do