debian-mirror-gitlab/spec/finders/boards/boards_finder_spec.rb
2021-04-17 20:07:23 +05:30

24 lines
590 B
Ruby

# frozen_string_literal: true
require 'spec_helper'
RSpec.describe Boards::BoardsFinder 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 list service'
it_behaves_like 'multiple boards list 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 list service'
end
end
end