Merge pull request #1123 from stephankaag/rails4-new

Refactor routes in order to be compatible with Rails 4
This commit is contained in:
Sam
2013-07-01 16:07:22 -07:00
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