blob: 7b06bec7b319f691fd504baf242065c4b87acc7f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
# frozen_string_literal: true
require 'spec_helper'
RSpec.describe IssueLink, feature_category: :portfolio_management do
let_it_be(:project) { create(:project) }
it_behaves_like 'issuable link' do
let_it_be_with_reload(:issuable_link) { create(:issue_link) }
let_it_be(:issuable) { create(:issue) }
let(:issuable_class) { 'Issue' }
let(:issuable_link_factory) { :issue_link }
end
describe '.issuable_type' do
it { expect(described_class.issuable_type).to eq(:issue) }
end
it_behaves_like 'includes LinkableItem concern' do
let_it_be(:item) { create(:issue, project: project) }
let_it_be(:item1) { create(:issue, project: project) }
let_it_be(:item2) { create(:issue, project: project) }
let_it_be(:link_factory) { :issue_link }
let_it_be(:item_type) { 'issue' }
end
end
|