Commit 99b870d5 authored by Mayra Cabrera's avatar Mayra Cabrera

Fixes broken specs

- Remove unwanted chat was failing as a consequence of moving external support from Premium to starter. We have a dependency on config_processor a project with a repository must be used

Closes #5171
parent f6a35a3c
require 'spec_helper'
describe EE::Gitlab::Ci::Pipeline::Chain::RemoveUnwantedChatJobs do
let(:project) { create(:project) }
let(:project) { create(:project, :repository) }
let(:pipeline) do
build(:ci_pipeline_with_one_job, project: project, ref: 'master')
......
......@@ -3,7 +3,7 @@ require 'spec_helper'
describe BuildFinishedWorker do
describe '#perform' do
it 'schedules a ChatNotification job for a chat build' do
build = create(:ci_build, pipeline: create(:ci_pipeline, source: :chat))
build = create(:ci_build, :success, pipeline: create(:ci_pipeline, source: :chat))
expect(ChatNotificationWorker)
.to receive(:perform_async)
......@@ -13,7 +13,7 @@ describe BuildFinishedWorker do
end
it 'does not schedule a ChatNotification job for a regular build' do
build = create(:ci_build, pipeline: create(:ci_pipeline))
build = create(:ci_build, :success, pipeline: create(:ci_pipeline))
expect(ChatNotificationWorker)
.not_to receive(:perform_async)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment