Commit db197aa6 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Fix tests and improve wording

parent b8225324
...@@ -37,5 +37,4 @@ ...@@ -37,5 +37,4 @@
= render "projects", projects: @projects = render "projects", projects: @projects
- else - else
%p %p
= icon('lock') This group does not have public projects
This is a private group
...@@ -84,10 +84,10 @@ describe NamespacesController do ...@@ -84,10 +84,10 @@ describe NamespacesController do
end end
context "when the user doesn't have access to the project" do 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 get :show, id: group.path
expect(response.status).to eq(404) expect(response).to redirect_to(group_path(group))
end end
end end
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment