diff options
author | Michael Kozono <mkozono@gmail.com> | 2017-05-04 21:12:19 +0300 |
---|---|---|
committer | Michael Kozono <mkozono@gmail.com> | 2017-05-05 22:12:50 +0300 |
commit | e4bcc90d95fa3b78544cb9ddd6019a5f914c1628 (patch) | |
tree | 68bf9769e348e45ff786a083e336f32409181d35 /spec/controllers/groups_controller_spec.rb | |
parent | 0c866f4a575d8127efbf3eafda83d8ccfbd97817 (diff) |
Add “project moved” flash message on redirect
Diffstat (limited to 'spec/controllers/groups_controller_spec.rb')
-rw-r--r-- | spec/controllers/groups_controller_spec.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/spec/controllers/groups_controller_spec.rb b/spec/controllers/groups_controller_spec.rb index d86bf1a3d0e..b5fd611747a 100644 --- a/spec/controllers/groups_controller_spec.rb +++ b/spec/controllers/groups_controller_spec.rb @@ -65,6 +65,7 @@ describe GroupsController do get :issues, id: redirect_route.path expect(response).to redirect_to(issues_group_path(group.to_param)) + expect(controller).to set_flash[:notice].to(/moved/) end end end @@ -108,6 +109,7 @@ describe GroupsController do get :merge_requests, id: redirect_route.path expect(response).to redirect_to(merge_requests_group_path(group.to_param)) + expect(controller).to set_flash[:notice].to(/moved/) end end end |