提交 de6fa5dd 编写于 作者: D Dmitriy Zaporozhets

Fix security spec

上级 9a88e4d1
......@@ -40,7 +40,7 @@ describe "Application access" do
end
describe "GET /project_code/tree/master" do
subject { project_tree_path(project, project.root_ref) }
subject { project_tree_path(project, project.repository.root_ref) }
it { should be_allowed_for master }
it { should be_allowed_for reporter }
......@@ -51,7 +51,7 @@ describe "Application access" do
end
describe "GET /project_code/commits/master" do
subject { project_commits_path(project, project.root_ref, limit: 1) }
subject { project_commits_path(project, project.repository.root_ref, limit: 1) }
it { should be_allowed_for master }
it { should be_allowed_for reporter }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册