Refactor routes in order to be compatible with Rails 4

This commit is contained in:
Stephan Kaag
2013-07-01 20:00:06 +02:00
parent d13166fa17
commit e39cc464b1
8 changed files with 16 additions and 16 deletions

View File

@@ -48,7 +48,7 @@ describe StaticController do
context 'without a redirect path' do
it 'redirects to the root url' do
xhr :post, :enter
expect(response).to redirect_to root_path
expect(response).to redirect_to '/'
end
end
@@ -62,7 +62,7 @@ describe StaticController do
context 'when the redirect path is the login page' do
it 'redirects to the root url' do
xhr :post, :enter, redirect: login_path
expect(response).to redirect_to root_path
expect(response).to redirect_to '/'
end
end
end