tests for merge request index/show
This commit is contained in:
parent
6b941cf92c
commit
60c6649a9a
3 changed files with 59 additions and 4 deletions
|
@ -122,5 +122,14 @@ describe "Projects" do
|
|||
it { project_snippets_path(@project).should be_denied_for :user }
|
||||
it { project_snippets_path(@project).should be_denied_for :visitor }
|
||||
end
|
||||
|
||||
describe "GET /project_code/merge_requests" do
|
||||
it { project_merge_requests_path(@project).should be_allowed_for @u1 }
|
||||
it { project_merge_requests_path(@project).should be_allowed_for @u3 }
|
||||
it { project_merge_requests_path(@project).should be_denied_for :admin }
|
||||
it { project_merge_requests_path(@project).should be_denied_for @u2 }
|
||||
it { project_merge_requests_path(@project).should be_denied_for :user }
|
||||
it { project_merge_requests_path(@project).should be_denied_for :visitor }
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue