aboutsummaryrefslogtreecommitdiffstats
path: root/spec/controllers/track_controller_spec.rb
diff options
context:
space:
mode:
authorfrancis <francis>2008-07-18 22:22:57 +0000
committerfrancis <francis>2008-07-18 22:22:57 +0000
commit97500f4d589b968ba6feea718f9b9b7d2039a3a4 (patch)
tree706b4aac45dce5fc202541167757dc106d36358d /spec/controllers/track_controller_spec.rb
parentc4e8e1d658c6d1e9c957af04092787d3f0d346c6 (diff)
RSS feeds without tracking (just underlying code, not linked from anywhere yet)
Diffstat (limited to 'spec/controllers/track_controller_spec.rb')
-rw-r--r--spec/controllers/track_controller_spec.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/controllers/track_controller_spec.rb b/spec/controllers/track_controller_spec.rb
index 62f3a0140..8cf11fde0 100644
--- a/spec/controllers/track_controller_spec.rb
+++ b/spec/controllers/track_controller_spec.rb
@@ -5,18 +5,18 @@ describe TrackController, "when making a new track on a request" do
fixtures :info_requests, :outgoing_messages, :incoming_messages, :info_request_events, :users
it "should render with 'track_set' template" do
- get :track_request, :url_title => info_requests(:fancy_dog_request).url_title
+ get :track_request, :url_title => info_requests(:fancy_dog_request).url_title, :feed => 'track'
response.should render_template('track_set')
end
it "should assign the title" do
- get :track_request, :url_title => info_requests(:fancy_dog_request).url_title
+ get :track_request, :url_title => info_requests(:fancy_dog_request).url_title, :feed => 'track'
assigns[:title].should include("track the request")
end
it "should require login when making new track" do
- post :track_request, :url_title => info_requests(:fancy_dog_request).url_title,
+ post :track_request, :url_title => info_requests(:fancy_dog_request).url_title, :feed => 'track',
:track_thing => { :track_medium => "email_daily" },
:submitted_track => 1
post_redirect = PostRedirect.get_last_post_redirect
@@ -26,7 +26,7 @@ describe TrackController, "when making a new track on a request" do
it "should make track and redirect if you are logged in " do
TrackThing.count.should == 2
session[:user_id] = users(:bob_smith_user).id
- post :track_request, :url_title => info_requests(:fancy_dog_request).url_title,
+ post :track_request, :url_title => info_requests(:fancy_dog_request).url_title, :feed => 'track',
:track_thing => { :track_medium => "email_daily" },
:submitted_track => 1
TrackThing.count.should == 3