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

require 'spec_helper'

RSpec.describe GoogleCloud::FetchGoogleIpListWorker, feature_category: :build_artifacts do
  describe '#perform' do
    it 'returns success' do
      allow_next_instance_of(GoogleCloud::FetchGoogleIpListService) do |service|
        expect(service).to receive(:execute).and_return({ status: :success })
      end

      expect(described_class.new.perform).to eq({ status: :success })
    end
  end
end