summaryrefslogtreecommitdiff
path: root/spec/support/helpers/markdown_feature.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/support/helpers/markdown_feature.rb')
-rw-r--r--spec/support/helpers/markdown_feature.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/spec/support/helpers/markdown_feature.rb b/spec/support/helpers/markdown_feature.rb
index 40e0d4413e2..0cb2863dc2c 100644
--- a/spec/support/helpers/markdown_feature.rb
+++ b/spec/support/helpers/markdown_feature.rb
@@ -87,6 +87,10 @@ class MarkdownFeature
@group_milestone ||= create(:milestone, name: 'group-milestone', group: group)
end
+ def alert
+ @alert ||= create(:alert_management_alert, project: project)
+ end
+
# Cross-references -----------------------------------------------------------
def xproject
@@ -125,6 +129,10 @@ class MarkdownFeature
@xmilestone ||= create(:milestone, project: xproject)
end
+ def xalert
+ @xalert ||= create(:alert_management_alert, project: xproject)
+ end
+
def urls
Gitlab::Routing.url_helpers
end