summaryrefslogtreecommitdiff
path: root/spec/workers/cluster_project_configure_worker_spec.rb
blob: 2ac9d0f61b46d7344084199301b26af2d35733e3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# frozen_string_literal: true

require 'spec_helper'

describe ClusterProjectConfigureWorker, '#perform' do
  let(:worker) { described_class.new }
  let(:cluster) { create(:cluster, :project) }

  it 'configures the cluster' do
    expect(Clusters::RefreshService).to receive(:create_or_update_namespaces_for_project)

    described_class.new.perform(cluster.projects.first.id)
  end
end