diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-09-22 00:11:42 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-09-22 00:11:42 +0300 |
commit | 8746f541fbcf2b89b30c3d4a1b290f5679186400 (patch) | |
tree | 3d7b3c62dde4097548097310f1669d7b3da5327e /spec/tooling/danger | |
parent | 97e624382d04b9fa172f51aa299f52778446c661 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/tooling/danger')
-rw-r--r-- | spec/tooling/danger/sidekiq_args_spec.rb | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/spec/tooling/danger/sidekiq_args_spec.rb b/spec/tooling/danger/sidekiq_args_spec.rb index bfa9ef169de..29bf32a9a02 100644 --- a/spec/tooling/danger/sidekiq_args_spec.rb +++ b/spec/tooling/danger/sidekiq_args_spec.rb @@ -71,6 +71,13 @@ RSpec.describe Tooling::Danger::SidekiqArgs, feature_category: :tooling do specs.add_comment_for_matched_line(filename) end + + it 'adds a top level warning' do + allow(specs).to receive(:markdown) + expect(specs).to receive(:warn).with(described_class::MR_WARNING_COMMENT) + + specs.add_comment_for_matched_line(filename) + end end context 'when args are not changed' do @@ -84,6 +91,12 @@ RSpec.describe Tooling::Danger::SidekiqArgs, feature_category: :tooling do specs.add_comment_for_matched_line(filename) end + + it 'does not add a top level warning' do + expect(specs).not_to receive(:warn) + + specs.add_comment_for_matched_line(filename) + end end end |