debian-mirror-gitlab/spec/services/boards/create_service_spec.rb

22 lines
505 B
Ruby
Raw Normal View History

2016-09-13 17:45:13 +05:30
require 'spec_helper'
2017-09-10 17:25:29 +05:30
describe Boards::CreateService do
2016-09-13 17:45:13 +05:30
describe '#execute' do
2018-03-27 19:54:05 +05:30
context 'when board parent is a project' do
let(:parent) { create(:project) }
2016-11-03 12:29:30 +05:30
2018-03-27 19:54:05 +05:30
subject(:service) { described_class.new(parent, double) }
2016-09-13 17:45:13 +05:30
2018-03-27 19:54:05 +05:30
it_behaves_like 'boards create service'
2016-09-13 17:45:13 +05:30
end
2018-03-27 19:54:05 +05:30
context 'when board parent is a group' do
let(:parent) { create(:group) }
2016-09-13 17:45:13 +05:30
2018-03-27 19:54:05 +05:30
subject(:service) { described_class.new(parent, double) }
2017-09-10 17:25:29 +05:30
2018-03-27 19:54:05 +05:30
it_behaves_like 'boards create service'
2016-09-13 17:45:13 +05:30
end
end
end