2022-03-02 08:16:31 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
require 'spec_helper'
|
|
|
|
|
2023-05-27 22:25:52 +05:30
|
|
|
RSpec.describe WorkItems::BuildService, feature_category: :team_planning do
|
2022-03-02 08:16:31 +05:30
|
|
|
let_it_be(:project) { create(:project, :repository) }
|
|
|
|
let_it_be(:guest) { create(:user) }
|
|
|
|
|
|
|
|
let(:user) { guest }
|
|
|
|
|
|
|
|
before_all do
|
|
|
|
project.add_guest(guest)
|
|
|
|
end
|
|
|
|
|
|
|
|
describe '#execute' do
|
2023-04-23 21:23:45 +05:30
|
|
|
subject { described_class.new(container: project, current_user: user, params: {}).execute }
|
2022-03-02 08:16:31 +05:30
|
|
|
|
|
|
|
it { is_expected.to be_a(::WorkItem) }
|
|
|
|
end
|
|
|
|
end
|