summaryrefslogtreecommitdiff
path: root/spec/factories/issues.rb
diff options
context:
space:
mode:
authorJacopo <beschi.jacopo@gmail.com>2018-09-20 16:41:15 +0200
committerJacopo <beschi.jacopo@gmail.com>2018-10-02 16:17:55 +0200
commite2056f08f072805a132bf18879749e401d8ad620 (patch)
treeb6f7011f7df982cb6c70d604beeef3c656250f7a /spec/factories/issues.rb
parentba66e0cc9cc26df686ed47d926a3edcde497baa1 (diff)
downloadgitlab-ce-e2056f08f072805a132bf18879749e401d8ad620.tar.gz
Hides Close MR button on merged MR50161-hide-close-mr-button-when-merged
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/factories/issues.rb')
-rw-r--r--spec/factories/issues.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/factories/issues.rb b/spec/factories/issues.rb
index 4d4f74e101e..ab27fee33dc 100644
--- a/spec/factories/issues.rb
+++ b/spec/factories/issues.rb
@@ -13,6 +13,10 @@ FactoryBot.define do
state :opened
end
+ trait :locked do
+ discussion_locked true
+ end
+
trait :closed do
state :closed
closed_at { Time.now }