diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-09-14 14:16:08 +0200 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-09-14 14:16:08 +0200 |
commit | db197aa61a3451bbe8eff1dea5dc992997b11b61 (patch) | |
tree | 0727c66d4af73322e2451dd2a28eaf68132371af /spec | |
parent | b8225324ef24eeb6f0b0b6cefb54282788a80210 (diff) | |
download | gitlab-ce-db197aa61a3451bbe8eff1dea5dc992997b11b61.tar.gz |
Fix tests and improve wording
Diffstat (limited to 'spec')
-rw-r--r-- | spec/controllers/namespaces_controller_spec.rb | 4 |
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 |