debian-mirror-gitlab/spec/services/issuable/destroy_label_links_service_spec.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

20 lines
515 B
Ruby
Raw Normal View History

2021-06-08 01:23:25 +05:30
# frozen_string_literal: true
require 'spec_helper'
2023-05-27 22:25:52 +05:30
RSpec.describe Issuable::DestroyLabelLinksService, feature_category: :team_planning do
2021-06-08 01:23:25 +05:30
describe '#execute' do
context 'when target is an Issue' do
let_it_be(:target) { create(:issue) }
it_behaves_like 'service deleting label links of an issuable'
end
context 'when target is a MergeRequest' do
let_it_be(:target) { create(:merge_request) }
it_behaves_like 'service deleting label links of an issuable'
end
end
end