diff options
Diffstat (limited to 'spec/controllers/track_controller_spec.rb')
-rw-r--r-- | spec/controllers/track_controller_spec.rb | 8 |
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 |