From d40d684afaec767bb05efdbeaa4ce3620cd337bb Mon Sep 17 00:00:00 2001 From: GitLab Bot Date: Wed, 9 Jun 2021 18:11:25 +0000 Subject: Add latest changes from gitlab-org/gitlab@master --- spec/routing/routing_spec.rb | 8 -------- 1 file changed, 8 deletions(-) (limited to 'spec/routing') diff --git a/spec/routing/routing_spec.rb b/spec/routing/routing_spec.rb index 4d95d5631e4..e7ea5b79897 100644 --- a/spec/routing/routing_spec.rb +++ b/spec/routing/routing_spec.rb @@ -134,12 +134,10 @@ RSpec.describe ProfilesController, "routing" do it "to #account" do expect(get("/-/profile/account")).to route_to('profiles/accounts#show') end - it_behaves_like 'redirecting a legacy path', '/profile/account', '/-/profile/account' it "to #audit_log" do expect(get("/-/profile/audit_log")).to route_to('profiles#audit_log') end - it_behaves_like 'redirecting a legacy path', '/profile/audit_log', '/-/profile/audit_log' it "to #reset_feed_token" do expect(put("/-/profile/reset_feed_token")).to route_to('profiles#reset_feed_token') @@ -148,7 +146,6 @@ RSpec.describe ProfilesController, "routing" do it "to #show" do expect(get("/-/profile")).to route_to('profiles#show') end - it_behaves_like 'redirecting a legacy path', '/profile', '/-/profile' end # profile_preferences GET /-/profile/preferences(.:format) profiles/preferences#show @@ -158,7 +155,6 @@ RSpec.describe Profiles::PreferencesController, 'routing' do it 'to #show' do expect(get('/-/profile/preferences')).to route_to('profiles/preferences#show') end - it_behaves_like 'redirecting a legacy path', '/profile/preferences', '/-/profile/preferences' it 'to #update' do expect(put('/-/profile/preferences')).to route_to('profiles/preferences#update') @@ -176,7 +172,6 @@ RSpec.describe Profiles::KeysController, "routing" do it "to #index" do expect(get("/-/profile/keys")).to route_to('profiles/keys#index') end - it_behaves_like 'redirecting a legacy path', '/profile/keys', '/-/profile/keys' it "to #create" do expect(post("/-/profile/keys")).to route_to('profiles/keys#create') @@ -185,7 +180,6 @@ RSpec.describe Profiles::KeysController, "routing" do it "to #show" do expect(get("/-/profile/keys/1")).to route_to('profiles/keys#show', id: '1') end - it_behaves_like 'redirecting a legacy path', '/profile/keys/1', '/-/profile/keys/1' it "to #destroy" do expect(delete("/-/profile/keys/1")).to route_to('profiles/keys#destroy', id: '1') @@ -200,7 +194,6 @@ RSpec.describe Profiles::GpgKeysController, "routing" do it "to #index" do expect(get("/-/profile/gpg_keys")).to route_to('profiles/gpg_keys#index') end - it_behaves_like 'redirecting a legacy path', '/profile/gpg_keys', '/-/profile/gpg_keys' it "to #create" do expect(post("/-/profile/gpg_keys")).to route_to('profiles/gpg_keys#create') @@ -218,7 +211,6 @@ RSpec.describe Profiles::EmailsController, "routing" do it "to #index" do expect(get("/-/profile/emails")).to route_to('profiles/emails#index') end - it_behaves_like 'redirecting a legacy path', '/profile/emails', '/-/profile/emails' it "to #create" do expect(post("/-/profile/emails")).to route_to('profiles/emails#create') -- cgit v1.2.3