85b29c1c2f
Probably useful as we often move these files to "new" files.
23 lines
530 B
Ruby
23 lines
530 B
Ruby
# frozen_string_literal: true
|
|
|
|
require 'spec_helper'
|
|
|
|
describe Boards::ListService 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'
|
|
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
|