Support for both /users/ and /u/ paths

This commit is contained in:
Robin Ward
2017-03-27 15:34:54 -04:00
parent 99abbc2e2d
commit 6b976433c9
10 changed files with 119 additions and 34 deletions

View File

@ -13,7 +13,7 @@ describe EmailController do
it 'redirects to your user preferences' do
get :preferences_redirect
expect(response).to redirect_to("/users/#{user.username}/preferences")
expect(response).to redirect_to("/u/#{user.username}/preferences")
end
end