diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-01-10 21:07:23 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-01-10 21:07:23 +0000 |
commit | 99bd45e7ce7539f3a0b7f7b710f1230464367b59 (patch) | |
tree | b5337e76c2a326b31c1890d154881ff68d388bc7 /spec/helpers/issues_helper_spec.rb | |
parent | 8cc4a6f23d41a1c57dc309130d2ce9ebc04d8334 (diff) | |
download | gitlab-ce-99bd45e7ce7539f3a0b7f7b710f1230464367b59.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/helpers/issues_helper_spec.rb')
-rw-r--r-- | spec/helpers/issues_helper_spec.rb | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/spec/helpers/issues_helper_spec.rb b/spec/helpers/issues_helper_spec.rb index 0bee80b05ff..cfd4f18990b 100644 --- a/spec/helpers/issues_helper_spec.rb +++ b/spec/helpers/issues_helper_spec.rb @@ -476,36 +476,6 @@ RSpec.describe IssuesHelper do end end - describe '#status_box_variant' do - context 'when object is expired' do - it 'returns warning badge' do - milestone = build(:milestone, due_date: Date.today.prev_month) - expect(helper.status_box_variant(milestone)).to eq('warning') - end - end - - context 'when object is closed' do - it 'returns danger badge' do - milestone = build(:milestone, :closed) - expect(helper.status_box_variant(milestone)).to eq('danger') - end - end - - context 'when object is upcoming' do - it 'returns neutral badge' do - milestone = build(:milestone, start_date: Date.today.next_month) - expect(helper.status_box_variant(milestone)).to eq('neutral') - end - end - - context 'when object is opened' do - it 'returns success badge' do - milestone = build(:milestone) - expect(helper.status_box_variant(milestone)).to eq('success') - end - end - end - describe '#issue_hidden?' do context 'when issue is hidden' do let_it_be(:banned_user) { build(:user, :banned) } |