gitlab-org--gitlab-foss/spec/services/boards/create_service_spec.rb

22 lines
505 B
Ruby
Raw Normal View History

require 'spec_helper'
describe Boards::CreateService do
describe '#execute' do
2018-02-19 14:06:16 -05:00
context 'when board parent is a project' do
let(:parent) { create(:project) }
2018-02-19 14:06:16 -05:00
subject(:service) { described_class.new(parent, double) }
2018-02-19 14:06:16 -05:00
it_behaves_like 'boards create service'
end
2018-02-19 14:06:16 -05:00
context 'when board parent is a group' do
let(:parent) { create(:group) }
2018-02-19 14:06:16 -05:00
subject(:service) { described_class.new(parent, double) }
2018-02-19 14:06:16 -05:00
it_behaves_like 'boards create service'
end
end
end