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

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'spec/workers/google_cloud/fetch_google_ip_list_worker_spec.rb')
-rw-r--r--spec/workers/google_cloud/fetch_google_ip_list_worker_spec.rb15
1 files changed, 15 insertions, 0 deletions
diff --git a/spec/workers/google_cloud/fetch_google_ip_list_worker_spec.rb b/spec/workers/google_cloud/fetch_google_ip_list_worker_spec.rb
new file mode 100644
index 00000000000..c0b32515d15
--- /dev/null
+++ b/spec/workers/google_cloud/fetch_google_ip_list_worker_spec.rb
@@ -0,0 +1,15 @@
+# frozen_string_literal: true
+
+require 'spec_helper'
+
+RSpec.describe GoogleCloud::FetchGoogleIpListWorker 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