fix photos controller test

This commit is contained in:
Maxwell Salzberg 2012-01-27 13:06:27 -08:00
parent 3146380365
commit c69df0fb29
2 changed files with 2 additions and 2 deletions

View file

@ -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

View file

@ -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