summaryrefslogtreecommitdiff
path: root/spec/services/boards/destroy_service_spec.rb
blob: cd6df832547d103f195c8f0dc2d2623e232a7de3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# frozen_string_literal: true

require 'spec_helper'

RSpec.describe Boards::DestroyService do
  context 'with project board' do
    let_it_be(:parent) { create(:project) }

    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) }

    let(:boards) { parent.boards }
    let(:board_factory) { :board }

    it_behaves_like 'board destroy service'
  end
end