debian-mirror-gitlab/spec/services/boards/list_service_spec.rb

22 lines
499 B
Ruby
Raw Normal View History

2016-11-03 12:29:30 +05:30
require 'spec_helper'
2017-09-10 17:25:29 +05:30
describe Boards::ListService do
2016-11-03 12:29:30 +05:30
describe '#execute' do
2018-03-27 19:54:05 +05:30
context 'when board parent is a project' do
let(:parent) { create(:project) }
2016-11-03 12:29:30 +05:30
2018-03-27 19:54:05 +05:30
subject(:service) { described_class.new(parent, double) }
2016-11-03 12:29:30 +05:30
2018-03-27 19:54:05 +05:30
it_behaves_like 'boards list service'
2016-11-03 12:29:30 +05:30
end
2018-03-27 19:54:05 +05:30
context 'when board parent is a group' do
let(:parent) { create(:group) }
2016-11-03 12:29:30 +05:30
2018-03-27 19:54:05 +05:30
subject(:service) { described_class.new(parent, double) }
2016-11-03 12:29:30 +05:30
2018-03-27 19:54:05 +05:30
it_behaves_like 'boards list service'
2016-11-03 12:29:30 +05:30
end
end
end