summaryrefslogtreecommitdiff
path: root/spec/routing
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2020-09-16 12:10:15 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2020-09-16 12:10:15 +0000
commit591b0e86e3dbaa31b68340a14dc32859306a27b1 (patch)
tree48f44f6a1de3fe9f38d314bf95988bc6efc527c4 /spec/routing
parent984357420ab0a91e8c73f04393a83b5ade63b460 (diff)
downloadgitlab-ce-591b0e86e3dbaa31b68340a14dc32859306a27b1.tar.gz
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/routing')
-rw-r--r--spec/routing/routing_spec.rb13
1 files changed, 6 insertions, 7 deletions
diff --git a/spec/routing/routing_spec.rb b/spec/routing/routing_spec.rb
index af4becd980b..722e687838f 100644
--- a/spec/routing/routing_spec.rb
+++ b/spec/routing/routing_spec.rb
@@ -32,13 +32,6 @@ RSpec.describe UsersController, "routing" do
expect(get("/users/User/snippets")).to route_to('users#snippets', username: 'User')
end
- # get all the ssh-keys of a user
- it "to #get_keys" do
- allow_any_instance_of(::Constraints::UserUrlConstrainer).to receive(:matches?).and_return(true)
-
- expect(get("/User.keys")).to route_to('users#ssh_keys', username: 'User')
- end
-
it "to #calendar" do
expect(get("/users/User/calendar")).to route_to('users#calendar', username: 'User')
end
@@ -193,6 +186,12 @@ RSpec.describe Profiles::KeysController, "routing" do
it "to #destroy" do
expect(delete("/profile/keys/1")).to route_to('profiles/keys#destroy', id: '1')
end
+
+ it "to #get_keys" do
+ allow_any_instance_of(::Constraints::UserUrlConstrainer).to receive(:matches?).and_return(true)
+
+ expect(get("/foo.keys")).to route_to('profiles/keys#get_keys', username: 'foo')
+ end
end
# emails GET /emails(.:format) emails#index