Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-06-24 19:24:14 +0400
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-06-24 19:24:14 +0400
commit3e09e6f7b8032859a82266282dfd35715b3b3727 (patch)
tree7f882004565743b11cb4c734cbdfb9417fa1a9ab /spec/routing
parente55e23bbda6f6a95982109bc46e48a5550e4c181 (diff)
Move Profile related controllers under Profiles:: module
Diffstat (limited to 'spec/routing')
-rw-r--r--spec/routing/notifications_routing_spec.rb6
-rw-r--r--spec/routing/routing_spec.rb16
2 files changed, 11 insertions, 11 deletions
diff --git a/spec/routing/notifications_routing_spec.rb b/spec/routing/notifications_routing_spec.rb
index 6880d2819d1..112b825e023 100644
--- a/spec/routing/notifications_routing_spec.rb
+++ b/spec/routing/notifications_routing_spec.rb
@@ -1,13 +1,13 @@
require "spec_helper"
-describe NotificationsController do
+describe Profiles::NotificationsController do
describe "routing" do
it "routes to #show" do
- get("/profile/notifications").should route_to("notifications#show")
+ get("/profile/notifications").should route_to("profiles/notifications#show")
end
it "routes to #update" do
- put("/profile/notifications").should route_to("notifications#update")
+ put("/profile/notifications").should route_to("profiles/notifications#update")
end
end
end
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