diff options
author | Jacopo <beschi.jacopo@gmail.com> | 2018-09-20 17:41:15 +0300 |
---|---|---|
committer | Jacopo <beschi.jacopo@gmail.com> | 2018-10-02 17:17:55 +0300 |
commit | e2056f08f072805a132bf18879749e401d8ad620 (patch) | |
tree | b6f7011f7df982cb6c70d604beeef3c656250f7a /spec/policies/issue_policy_spec.rb | |
parent | ba66e0cc9cc26df686ed47d926a3edcde497baa1 (diff) |
Hides Close MR button on merged MR
When a Merge request is merged, shows only the Report abuse menu item
in the dropdown menu instead of showing the close_reopen_report toggle
with an unusable Close button.
The Report abuse is still hidden when the author of the Merge request
is the current_user.
Hides the Reopen button on a closed and locked issue when the
issue.author is not the current_user
Diffstat (limited to 'spec/policies/issue_policy_spec.rb')
-rw-r--r-- | spec/policies/issue_policy_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/policies/issue_policy_spec.rb b/spec/policies/issue_policy_spec.rb index 93e85b3a6fa..008d118b557 100644 --- a/spec/policies/issue_policy_spec.rb +++ b/spec/policies/issue_policy_spec.rb @@ -112,7 +112,7 @@ describe IssuePolicy do let(:project) { create(:project, :public) } let(:issue) { create(:issue, project: project, assignees: [assignee], author: author) } let(:issue_no_assignee) { create(:issue, project: project) } - let(:issue_locked) { create(:issue, project: project, discussion_locked: true, author: author, assignees: [assignee]) } + let(:issue_locked) { create(:issue, :locked, project: project, author: author, assignees: [assignee]) } before do project.add_guest(guest) |