diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-01-05 02:49:43 +0400 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-01-05 02:49:43 +0400 |
commit | de6fa5dd520244e9802b5b486ce9d437556baf31 (patch) | |
tree | 49599acd6e4dbc50de0491ff174588b1fbf0cf8e /spec | |
parent | 9a88e4d184e5959cb3b7212d027ae4bbe1c97302 (diff) |
Fix security spec
Diffstat (limited to 'spec')
-rw-r--r-- | spec/requests/security/project_access_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/requests/security/project_access_spec.rb b/spec/requests/security/project_access_spec.rb index 3aee8ba1de4..a35175102ec 100644 --- a/spec/requests/security/project_access_spec.rb +++ b/spec/requests/security/project_access_spec.rb @@ -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 } |