summaryrefslogtreecommitdiff
path: root/spec/routing
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2020-08-08 03:10:13 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2020-08-08 03:10:13 +0000
commitbbd439f9c5abb1a65243375d0e7c04609c6802d2 (patch)
tree117df4a044f4f20af4e39927703230890d558cd8 /spec/routing
parent85f6cef97283e50cb2de3dfa4015f7e617440b68 (diff)
downloadgitlab-ce-bbd439f9c5abb1a65243375d0e7c04609c6802d2.tar.gz
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/routing')
-rw-r--r--spec/routing/notifications_routing_spec.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/spec/routing/notifications_routing_spec.rb b/spec/routing/notifications_routing_spec.rb
index f545badcdfa..007e8ff4816 100644
--- a/spec/routing/notifications_routing_spec.rb
+++ b/spec/routing/notifications_routing_spec.rb
@@ -10,4 +10,9 @@ RSpec.describe "notifications routing" do
it "routes to #update" do
expect(put("/profile/notifications")).to route_to("profiles/notifications#update")
end
+
+ it 'routes to group #update' do
+ expect(put("/profile/notifications/groups/gitlab-org")).to route_to("profiles/groups#update", id: 'gitlab-org')
+ expect(put("/profile/notifications/groups/gitlab.org")).to route_to("profiles/groups#update", id: 'gitlab.org')
+ end
end