summaryrefslogtreecommitdiff
path: root/spec/routing/routing_spec.rb
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-06-24 18:24:14 +0300
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-06-24 18:24:14 +0300
commit3e09e6f7b8032859a82266282dfd35715b3b3727 (patch)
tree7f882004565743b11cb4c734cbdfb9417fa1a9ab /spec/routing/routing_spec.rb
parente55e23bbda6f6a95982109bc46e48a5550e4c181 (diff)
downloadgitlab-ce-3e09e6f7b8032859a82266282dfd35715b3b3727.tar.gz
Move Profile related controllers under Profiles:: module
Diffstat (limited to 'spec/routing/routing_spec.rb')
-rw-r--r--spec/routing/routing_spec.rb16
1 files changed, 8 insertions, 8 deletions
diff --git a/spec/routing/routing_spec.rb b/spec/routing/routing_spec.rb
index aa3952f74b6..cc2a141c454 100644
--- a/spec/routing/routing_spec.rb
+++ b/spec/routing/routing_spec.rb
@@ -155,33 +155,33 @@ end
# key GET /keys/:id(.:format) keys#show
# PUT /keys/:id(.:format) keys#update
# DELETE /keys/:id(.:format) keys#destroy
-describe KeysController, "routing" do
+describe Profiles::KeysController, "routing" do
it "to #index" do
- get("/keys").should route_to('keys#index')
+ get("/profile/keys").should route_to('profiles/keys#index')
end
it "to #create" do
- post("/keys").should route_to('keys#create')
+ post("/profile/keys").should route_to('profiles/keys#create')
end
it "to #new" do
- get("/keys/new").should route_to('keys#new')
+ get("/profile/keys/new").should route_to('profiles/keys#new')
end
it "to #edit" do
- get("/keys/1/edit").should route_to('keys#edit', id: '1')
+ get("/profile/keys/1/edit").should route_to('profiles/keys#edit', id: '1')
end
it "to #show" do
- get("/keys/1").should route_to('keys#show', id: '1')
+ get("/profile/keys/1").should route_to('profiles/keys#show', id: '1')
end
it "to #update" do
- put("/keys/1").should route_to('keys#update', id: '1')
+ put("/profile/keys/1").should route_to('profiles/keys#update', id: '1')
end
it "to #destroy" do
- delete("/keys/1").should route_to('keys#destroy', id: '1')
+ delete("/profile/keys/1").should route_to('profiles/keys#destroy', id: '1')
end
end