fix photos controller test
This commit is contained in:
parent
3146380365
commit
c69df0fb29
2 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue