Welcome to mirror list, hosted at ThFree Co, Russian Federation.

pages_worker_spec.rb « workers « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 5ddfd5b43b901c28e6661df0ccd95b8224562440 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# frozen_string_literal: true

require 'spec_helper'

RSpec.describe PagesWorker, :sidekiq_inline do
  let(:project) { create(:project) }
  let(:ci_build) { create(:ci_build, project: project)}

  it 'calls UpdatePagesService' do
    expect_next_instance_of(Projects::UpdatePagesService, project, ci_build) do |service|
      expect(service).to receive(:execute)
    end

    described_class.perform_async(:deploy, ci_build.id)
  end
end