Commit de6fa5dd520244e9802b5b486ce9d437556baf31

Authored by Dmitriy Zaporozhets
1 parent 9a88e4d1

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 40 end
41 41  
42 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 45 it { should be_allowed_for master }
46 46 it { should be_allowed_for reporter }
... ... @@ -51,7 +51,7 @@ describe "Application access" do
51 51 end
52 52  
53 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 56 it { should be_allowed_for master }
57 57 it { should be_allowed_for reporter }
... ...