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

22 lines
499 B
Ruby
Raw Normal View History

require 'spec_helper'
describe Boards::ListService 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 list 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 list service'
end
end
end