mirror of
https://github.com/discourse/discourse.git
synced 2025-05-28 10:32:08 +08:00
Merge pull request #1123 from stephankaag/rails4-new
Refactor routes in order to be compatible with Rails 4
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user