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

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

require 'spec_helper'
require 'securerandom'

describe ProjectUpdateRepositoryStorageWorker do
  let(:project) { create(:project, :repository) }

  subject { described_class.new }

  describe "#perform" do
    it "calls the update repository storage service" do
      expect_next_instance_of(Projects::UpdateRepositoryStorageService) do |instance|
        expect(instance).to receive(:execute).with('new_storage')
      end

      subject.perform(project.id, 'new_storage')
    end
  end
end