diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-03-22 12:09:15 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-03-22 12:09:15 +0300 |
commit | b014ff26b4416de3aa49d83483d8ce5d273c0708 (patch) | |
tree | bcf94e60e38d43d34b1d230c914ea6ea4fdbe9a3 /spec/services | |
parent | 073d94594fabc5a3d6148c03c4bd7523d1bb7e15 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/services')
-rw-r--r-- | spec/services/boards/destroy_service_spec.rb | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/spec/services/boards/destroy_service_spec.rb b/spec/services/boards/destroy_service_spec.rb new file mode 100644 index 00000000000..ec0d264d726 --- /dev/null +++ b/spec/services/boards/destroy_service_spec.rb @@ -0,0 +1,21 @@ +# 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 |