diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2012-12-22 19:52:28 +0200 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2012-12-22 19:52:28 +0200 |
commit | 1ba28aaef8a985f6e06b2a2673dcaf4723843241 (patch) | |
tree | 9f7bc83c3e2372224c40a62feba07d6dcbc463e2 /spec/helpers | |
parent | 640018ba55e9fabc049e111bc9e42ee1ca3aa07c (diff) | |
download | gitlab-ce-1ba28aaef8a985f6e06b2a2673dcaf4723843241.tar.gz |
Implement UsersProject project_access validation
Diffstat (limited to 'spec/helpers')
-rw-r--r-- | spec/helpers/gitlab_markdown_helper_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/helpers/gitlab_markdown_helper_spec.rb b/spec/helpers/gitlab_markdown_helper_spec.rb index f0b792fc1cb..b792e0c86f6 100644 --- a/spec/helpers/gitlab_markdown_helper_spec.rb +++ b/spec/helpers/gitlab_markdown_helper_spec.rb @@ -85,7 +85,7 @@ describe GitlabMarkdownHelper do let(:expected) { project_team_member_path(project, member) } before do - project.users << user + project.add_access(user, :admin) end it "should link using a simple name" do @@ -314,7 +314,7 @@ describe GitlabMarkdownHelper do end it "should handle references in lists" do - project.users << user + project.add_access(user, :admin) actual = "\n* dark: ##{issue.id}\n* light by @#{member.user.username}" |