debian-mirror-gitlab/spec/services/boards/create_service_spec.rb
2023-05-27 22:25:52 +05:30

23 lines
576 B
Ruby

# frozen_string_literal: true
require 'spec_helper'
RSpec.describe Boards::CreateService, feature_category: :team_planning do
describe '#execute' do
context 'when board parent is a project' do
let(:parent) { create(:project) }
subject(:service) { described_class.new(parent, double) }
it_behaves_like 'boards create service'
end
context 'when board parent is a group' do
let(:parent) { create(:group) }
subject(:service) { described_class.new(parent, double) }
it_behaves_like 'boards create service'
end
end
end