diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-06-21 15:07:45 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-06-21 15:07:45 +0300 |
commit | d4c968c95c4b966a58d3fe76c25aeb6e97d84925 (patch) | |
tree | b3d9237b97a50d813437d53eb9fbfd406417031f /spec/routing | |
parent | 3ab7e70965fd198aafefc5c1a0eaf7b695f6cabc (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/routing')
-rw-r--r-- | spec/routing/project_routing_spec.rb | 20 |
1 files changed, 15 insertions, 5 deletions
diff --git a/spec/routing/project_routing_spec.rb b/spec/routing/project_routing_spec.rb index fe04a1d7c4a..7b194ef8122 100644 --- a/spec/routing/project_routing_spec.rb +++ b/spec/routing/project_routing_spec.rb @@ -770,13 +770,23 @@ RSpec.describe 'project routing' do end end - describe Projects::UsagePingController, 'routing' do - it 'routes to usage_ping#web_ide_clientside_preview' do - expect(post('/gitlab/gitlabhq/usage_ping/web_ide_clientside_preview')).to route_to('projects/usage_ping#web_ide_clientside_preview', namespace_id: 'gitlab', project_id: 'gitlabhq') + describe Projects::ServicePingController, 'routing' do + describe 'deprecated routing' do + it 'routes to service_ping#web_ide_clientside_preview' do + expect(post('/gitlab/gitlabhq/usage_ping/web_ide_clientside_preview')).to route_to('projects/service_ping#web_ide_clientside_preview', namespace_id: 'gitlab', project_id: 'gitlabhq') + end + + it 'routes to service_ping#web_ide_pipelines_count' do + expect(post('/gitlab/gitlabhq/usage_ping/web_ide_pipelines_count')).to route_to('projects/service_ping#web_ide_pipelines_count', namespace_id: 'gitlab', project_id: 'gitlabhq') + end + end + + it 'routes to service_ping#web_ide_clientside_preview' do + expect(post('/gitlab/gitlabhq/service_ping/web_ide_clientside_preview')).to route_to('projects/service_ping#web_ide_clientside_preview', namespace_id: 'gitlab', project_id: 'gitlabhq') end - it 'routes to usage_ping#web_ide_pipelines_count' do - expect(post('/gitlab/gitlabhq/usage_ping/web_ide_pipelines_count')).to route_to('projects/usage_ping#web_ide_pipelines_count', namespace_id: 'gitlab', project_id: 'gitlabhq') + it 'routes to service_ping#web_ide_pipelines_count' do + expect(post('/gitlab/gitlabhq/service_ping/web_ide_pipelines_count')).to route_to('projects/service_ping#web_ide_pipelines_count', namespace_id: 'gitlab', project_id: 'gitlabhq') end end |