2021-03-22 09:09:15 +00:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
require 'spec_helper'
|
|
|
|
|
|
|
|
RSpec.describe Boards::DestroyService do
|
|
|
|
context 'with project board' do
|
|
|
|
let_it_be(:parent) { create(:project) }
|
2021-04-19 18:09:09 +00:00
|
|
|
|
2021-03-22 09:09:15 +00:00
|
|
|
let(:boards) { parent.boards }
|
|
|
|
let(:board_factory) { :board }
|
|
|
|
|
|
|
|
it_behaves_like 'board destroy service'
|
|
|
|
end
|
|
|
|
|
|
|
|
context 'with group board' do
|
|
|
|
let_it_be(:parent) { create(:group) }
|
2021-04-19 18:09:09 +00:00
|
|
|
|
2021-03-22 09:09:15 +00:00
|
|
|
let(:boards) { parent.boards }
|
|
|
|
let(:board_factory) { :board }
|
|
|
|
|
|
|
|
it_behaves_like 'board destroy service'
|
|
|
|
end
|
|
|
|
end
|