debian-mirror-gitlab/spec/services/boards/create_service_spec.rb
2018-03-27 19:54:05 +05:30

21 lines
505 B
Ruby

require 'spec_helper'
describe Boards::CreateService 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