diff options
author | Michael Kozono <mkozono@gmail.com> | 2017-05-04 11:12:19 -0700 |
---|---|---|
committer | Michael Kozono <mkozono@gmail.com> | 2017-05-05 12:12:50 -0700 |
commit | e4bcc90d95fa3b78544cb9ddd6019a5f914c1628 (patch) | |
tree | 68bf9769e348e45ff786a083e336f32409181d35 /spec/controllers/users_controller_spec.rb | |
parent | 0c866f4a575d8127efbf3eafda83d8ccfbd97817 (diff) | |
download | gitlab-ce-e4bcc90d95fa3b78544cb9ddd6019a5f914c1628.tar.gz |
Add “project moved” flash message on redirect
Diffstat (limited to 'spec/controllers/users_controller_spec.rb')
-rw-r--r-- | spec/controllers/users_controller_spec.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/controllers/users_controller_spec.rb b/spec/controllers/users_controller_spec.rb index 73f448d69ed..5e8caa89cb7 100644 --- a/spec/controllers/users_controller_spec.rb +++ b/spec/controllers/users_controller_spec.rb @@ -82,6 +82,7 @@ describe UsersController do get :show, username: redirect_route.path expect(response).to redirect_to(user) + expect(controller).to set_flash[:notice].to(/moved/) end end @@ -159,6 +160,7 @@ describe UsersController do get :calendar, username: redirect_route.path expect(response).to redirect_to(user_calendar_path(user)) + expect(controller).to set_flash[:notice].to(/moved/) end end end @@ -211,6 +213,7 @@ describe UsersController do get :calendar_activities, username: redirect_route.path expect(response).to redirect_to(user_calendar_activities_path(user)) + expect(controller).to set_flash[:notice].to(/moved/) end end end @@ -263,6 +266,7 @@ describe UsersController do get :snippets, username: redirect_route.path expect(response).to redirect_to(user_snippets_path(user)) + expect(controller).to set_flash[:notice].to(/moved/) end end end |