Commit 9b5b41b9 authored by Jarka Košanová's avatar Jarka Košanová

Fix failing pipelines

parent d9462f4d
# frozen_string_literal: true
module EpicLinks
class CreateService < IssuableLinks::CreateService
def execute
......
# frozen_string_literal: true
module EpicLinks
class ListService < IssuableLinks::ListService
private
......
......@@ -50,7 +50,7 @@ describe EpicsHelper do
expect(meta_data['parent']).to eq({
'id' => parent_epic.id,
'title' => parent_epic.title,
'url' => "/groups/#{group.full_path}/-/epics/#{parent_epic.id}"
'url' => "/groups/#{group.full_path}/-/epics/#{parent_epic.iid}"
})
expect(meta_data['start_date']).to eq('2000-01-01')
expect(meta_data['start_date_sourcing_milestone_title']).to eq(milestone1.title)
......
......@@ -79,7 +79,7 @@ describe Epic do
end
end
describe '#ancestors' do
describe '#ancestors', :nested_groups do
let(:group) { create(:group) }
let(:epic1) { create(:epic, group: group) }
let(:epic2) { create(:epic, group: group, parent: epic1) }
......@@ -94,7 +94,7 @@ describe Epic do
end
end
describe '#descendants' do
describe '#descendants', :nested_groups do
let(:group) { create(:group) }
let(:epic1) { create(:epic, group: group) }
let(:epic2) { create(:epic, group: group, parent: epic1) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe EpicLinks::CreateService do
describe EpicLinks::CreateService, :nested_groups do
describe '#execute' do
let(:group) { create(:group) }
let(:user) { create(:user) }
......@@ -67,7 +67,7 @@ describe EpicLinks::CreateService do
include_examples 'returns success'
end
context 'when an epic from a subgroup is given', :nested_groups do
context 'when an epic from a subgroup is given' do
let(:subgroup) { create(:group, parent: group) }
before do
......@@ -151,7 +151,7 @@ describe EpicLinks::CreateService do
end
end
context 'when adding an wolud would exceed level 5 in hierarchy' do
context 'when adding an epic would would exceed level 5 in hierarchy' do
context 'when adding to already deep structure' do
before do
epic1 = create(:epic, group: group)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment