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>2015-09-14 15:16:08 +0300
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-09-14 15:16:08 +0300
commitdb197aa61a3451bbe8eff1dea5dc992997b11b61 (patch)
tree0727c66d4af73322e2451dd2a28eaf68132371af /spec/controllers
parentb8225324ef24eeb6f0b0b6cefb54282788a80210 (diff)
Fix tests and improve wording
Diffstat (limited to 'spec/controllers')
-rw-r--r--spec/controllers/namespaces_controller_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/controllers/namespaces_controller_spec.rb b/spec/controllers/namespaces_controller_spec.rb
index 74702f93302..77436958711 100644
--- a/spec/controllers/namespaces_controller_spec.rb
+++ b/spec/controllers/namespaces_controller_spec.rb
@@ -84,10 +84,10 @@ describe NamespacesController do
end
context "when the user doesn't have access to the project" do
- it "responds with status 404" do
+ it "redirects to the group's page" do
get :show, id: group.path
- expect(response.status).to eq(404)
+ expect(response).to redirect_to(group_path(group))
end
end
end