diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-04-10 12:09:39 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-04-10 12:09:39 +0300 |
commit | c52b81f45762cb7f05a950689dfc6d51b197ea73 (patch) | |
tree | c44830c2fc21d13b81814958c44b09fa8d11c805 /spec/lib/gitlab/alerting | |
parent | 187ee320b39af22929d74c5a2d9b0650bf50a09b (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/lib/gitlab/alerting')
-rw-r--r-- | spec/lib/gitlab/alerting/alert_spec.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/spec/lib/gitlab/alerting/alert_spec.rb b/spec/lib/gitlab/alerting/alert_spec.rb index aaded28954e..8b67cf949ce 100644 --- a/spec/lib/gitlab/alerting/alert_spec.rb +++ b/spec/lib/gitlab/alerting/alert_spec.rb @@ -192,6 +192,16 @@ describe Gitlab::Alerting::Alert do end end + describe '#y_label' do + subject { alert.y_label } + + it_behaves_like 'parse payload', 'annotations/gitlab_y_label' + + context 'when y_label is not included in the payload' do + it_behaves_like 'parse payload', 'annotations/title' + end + end + describe '#alert_markdown' do subject { alert.alert_markdown } |