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

25 lines
589 B
Ruby
Raw Normal View History

# frozen_string_literal: true
require 'spec_helper'
RSpec.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'
it_behaves_like 'multiple 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