diff options
author | GitLab <devaroop123@yahoo.co.in> | 2014-02-06 14:42:59 +0530 |
---|---|---|
committer | GitLab <devaroop123@yahoo.co.in> | 2014-02-06 14:42:59 +0530 |
commit | 1c9a41e0d5cac3ee937555ae4189ecd1ad597004 (patch) | |
tree | 5ee908eb58dc64d085426de54baacaa207feb137 /spec/routing | |
parent | b9d58c4cecd06be74c3cc32ccfb522b31544ab2e (diff) | |
download | gitlab-ce-1c9a41e0d5cac3ee937555ae4189ecd1ad597004.tar.gz |
adding tests for the ssh keys feature
Diffstat (limited to 'spec/routing')
-rw-r--r-- | spec/routing/routing_spec.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/spec/routing/routing_spec.rb b/spec/routing/routing_spec.rb index 946ef7c28cb..f5ffb211530 100644 --- a/spec/routing/routing_spec.rb +++ b/spec/routing/routing_spec.rb @@ -183,6 +183,11 @@ describe Profiles::KeysController, "routing" do it "to #destroy" do delete("/profile/keys/1").should route_to('profiles/keys#destroy', id: '1') end + + # get all the ssh-keys of a user + it "to #get_keys" do + get("/foo.keys").should route_to('profiles/keys#get_keys', username: 'foo') + end end # dashboard GET /dashboard(.:format) dashboard#show |