diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-07-23 18:09:28 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-07-23 18:09:28 +0300 |
commit | 14fb5a922285d71fea67de59164ee4bb81ee3486 (patch) | |
tree | d3f585c54feb676aec2f14cc85fe32d615fd7fc0 /spec/routing | |
parent | d9b0b3243e3cd71a08ff5d4035b7882cc7a5a35f (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/routing')
-rw-r--r-- | spec/routing/project_routing_spec.rb | 20 | ||||
-rw-r--r-- | spec/routing/routing_spec.rb | 20 |
2 files changed, 20 insertions, 20 deletions
diff --git a/spec/routing/project_routing_spec.rb b/spec/routing/project_routing_spec.rb index 87091da0c84..028a5782c6e 100644 --- a/spec/routing/project_routing_spec.rb +++ b/spec/routing/project_routing_spec.rb @@ -314,39 +314,39 @@ RSpec.describe 'project routing' do # DELETE /:project_id/snippets/:id(.:format) snippets#destroy describe SnippetsController, 'routing' do it 'to #raw' do - expect(get('/gitlab/gitlabhq/snippets/1/raw')).to route_to('projects/snippets#raw', namespace_id: 'gitlab', project_id: 'gitlabhq', id: '1') + expect(get('/gitlab/gitlabhq/-/snippets/1/raw')).to route_to('projects/snippets#raw', namespace_id: 'gitlab', project_id: 'gitlabhq', id: '1') end it 'to #index' do - expect(get('/gitlab/gitlabhq/snippets')).to route_to('projects/snippets#index', namespace_id: 'gitlab', project_id: 'gitlabhq') + expect(get('/gitlab/gitlabhq/-/snippets')).to route_to('projects/snippets#index', namespace_id: 'gitlab', project_id: 'gitlabhq') end it 'to #create' do - expect(post('/gitlab/gitlabhq/snippets')).to route_to('projects/snippets#create', namespace_id: 'gitlab', project_id: 'gitlabhq') + expect(post('/gitlab/gitlabhq/-/snippets')).to route_to('projects/snippets#create', namespace_id: 'gitlab', project_id: 'gitlabhq') end it 'to #new' do - expect(get('/gitlab/gitlabhq/snippets/new')).to route_to('projects/snippets#new', namespace_id: 'gitlab', project_id: 'gitlabhq') + expect(get('/gitlab/gitlabhq/-/snippets/new')).to route_to('projects/snippets#new', namespace_id: 'gitlab', project_id: 'gitlabhq') end it 'to #edit' do - expect(get('/gitlab/gitlabhq/snippets/1/edit')).to route_to('projects/snippets#edit', namespace_id: 'gitlab', project_id: 'gitlabhq', id: '1') + expect(get('/gitlab/gitlabhq/-/snippets/1/edit')).to route_to('projects/snippets#edit', namespace_id: 'gitlab', project_id: 'gitlabhq', id: '1') end it 'to #show' do - expect(get('/gitlab/gitlabhq/snippets/1')).to route_to('projects/snippets#show', namespace_id: 'gitlab', project_id: 'gitlabhq', id: '1') + expect(get('/gitlab/gitlabhq/-/snippets/1')).to route_to('projects/snippets#show', namespace_id: 'gitlab', project_id: 'gitlabhq', id: '1') end it 'to #update' do - expect(put('/gitlab/gitlabhq/snippets/1')).to route_to('projects/snippets#update', namespace_id: 'gitlab', project_id: 'gitlabhq', id: '1') + expect(put('/gitlab/gitlabhq/-/snippets/1')).to route_to('projects/snippets#update', namespace_id: 'gitlab', project_id: 'gitlabhq', id: '1') end it 'to #destroy' do - expect(delete('/gitlab/gitlabhq/snippets/1')).to route_to('projects/snippets#destroy', namespace_id: 'gitlab', project_id: 'gitlabhq', id: '1') + expect(delete('/gitlab/gitlabhq/-/snippets/1')).to route_to('projects/snippets#destroy', namespace_id: 'gitlab', project_id: 'gitlabhq', id: '1') end - it 'to #show from scope routing' do - expect(get('/gitlab/gitlabhq/-/snippets/1')).to route_to('projects/snippets#show', namespace_id: 'gitlab', project_id: 'gitlabhq', id: '1') + it 'to #show from unscope routing' do + expect(get('/gitlab/gitlabhq/snippets/1')).to route_to('projects/snippets#show', namespace_id: 'gitlab', project_id: 'gitlabhq', id: '1') end end diff --git a/spec/routing/routing_spec.rb b/spec/routing/routing_spec.rb index 1218ae30781..024d4d467a7 100644 --- a/spec/routing/routing_spec.rb +++ b/spec/routing/routing_spec.rb @@ -76,39 +76,39 @@ end # DELETE /snippets/:id(.:format) snippets#destroy RSpec.describe SnippetsController, "routing" do it "to #raw" do - expect(get("/snippets/1/raw")).to route_to('snippets#raw', id: '1') + expect(get("/-/snippets/1/raw")).to route_to('snippets#raw', id: '1') end it "to #index" do - expect(get("/snippets")).to route_to('snippets#index') + expect(get("/-/snippets")).to route_to('snippets#index') end it "to #create" do - expect(post("/snippets")).to route_to('snippets#create') + expect(post("/-/snippets")).to route_to('snippets#create') end it "to #new" do - expect(get("/snippets/new")).to route_to('snippets#new') + expect(get("/-/snippets/new")).to route_to('snippets#new') end it "to #edit" do - expect(get("/snippets/1/edit")).to route_to('snippets#edit', id: '1') + expect(get("/-/snippets/1/edit")).to route_to('snippets#edit', id: '1') end it "to #show" do - expect(get("/snippets/1")).to route_to('snippets#show', id: '1') + expect(get("/-/snippets/1")).to route_to('snippets#show', id: '1') end it "to #update" do - expect(put("/snippets/1")).to route_to('snippets#update', id: '1') + expect(put("/-/snippets/1")).to route_to('snippets#update', id: '1') end it "to #destroy" do - expect(delete("/snippets/1")).to route_to('snippets#destroy', id: '1') + expect(delete("/-/snippets/1")).to route_to('snippets#destroy', id: '1') end - it 'to #show from scope routing' do - expect(get("/-/snippets/1")).to route_to('snippets#show', id: '1') + it 'to #show from unscoped routing' do + expect(get("/snippets/1")).to route_to('snippets#show', id: '1') end end |