Commit de6fa5dd520244e9802b5b486ce9d437556baf31
1 parent
9a88e4d1
Exists in
master
and in
4 other branches
Fix security spec
Showing
1 changed file
with
2 additions
and
2 deletions
Show diff stats
spec/requests/security/project_access_spec.rb
@@ -40,7 +40,7 @@ describe "Application access" do | @@ -40,7 +40,7 @@ describe "Application access" do | ||
40 | end | 40 | end |
41 | 41 | ||
42 | describe "GET /project_code/tree/master" do | 42 | describe "GET /project_code/tree/master" do |
43 | - subject { project_tree_path(project, project.root_ref) } | 43 | + subject { project_tree_path(project, project.repository.root_ref) } |
44 | 44 | ||
45 | it { should be_allowed_for master } | 45 | it { should be_allowed_for master } |
46 | it { should be_allowed_for reporter } | 46 | it { should be_allowed_for reporter } |
@@ -51,7 +51,7 @@ describe "Application access" do | @@ -51,7 +51,7 @@ describe "Application access" do | ||
51 | end | 51 | end |
52 | 52 | ||
53 | describe "GET /project_code/commits/master" do | 53 | describe "GET /project_code/commits/master" do |
54 | - subject { project_commits_path(project, project.root_ref, limit: 1) } | 54 | + subject { project_commits_path(project, project.repository.root_ref, limit: 1) } |
55 | 55 | ||
56 | it { should be_allowed_for master } | 56 | it { should be_allowed_for master } |
57 | it { should be_allowed_for reporter } | 57 | it { should be_allowed_for reporter } |