From c69df0fb292da4d986390a74efdf839f5a973d6f Mon Sep 17 00:00:00 2001 From: Maxwell Salzberg Date: Fri, 27 Jan 2012 13:06:27 -0800 Subject: [PATCH] fix photos controller test --- app/controllers/application_controller.rb | 2 +- spec/controllers/photos_controller_spec.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index 4c2706ad4..5ecbca255 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -24,7 +24,7 @@ class ApplicationController < ActionController::Base :open_publisher def ensure_http_referer_is_set - request.env['HTTP_REFERER'] ||= '/stream' + request.env['HTTP_REFERER'] ||= root_path end # Overwriting the sign_out redirect path method diff --git a/spec/controllers/photos_controller_spec.rb b/spec/controllers/photos_controller_spec.rb index 6893dff4a..7d974aa52 100644 --- a/spec/controllers/photos_controller_spec.rb +++ b/spec/controllers/photos_controller_spec.rb @@ -135,7 +135,7 @@ describe PhotosController do it "redirects to the aspects page if there's no referrer" do request.env.delete("HTTP_REFERER") get :show, :id => @photo.to_param - response.should redirect_to(aspects_path) + response.should redirect_to(root_path) end it 'redirects to the sign in page if not logged in' do