gitlab-org--gitlab-foss/spec/finders/boards/boards_finder_spec.rb

25 lines
590 B
Ruby
Raw Normal View History

# frozen_string_literal: true
require 'spec_helper'
RSpec.describe Boards::BoardsFinder 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