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:
authorKamil Trzcinski <ayufan@ayufan.eu>2017-10-04 22:13:01 +0300
committerKamil Trzcinski <ayufan@ayufan.eu>2017-10-04 22:13:01 +0300
commitbee5c08094b4f2c125509f61e9e03a7a700bba5e (patch)
treec85a45ef9bdc5307c70f12aa5b2b1774bcf7bebf /spec/workers/wait_for_cluster_creation_worker_spec.rb
parent54831bd44bdf7f7b19ac3a129ebf6384549d9c63 (diff)
Fix Rubocop failures
Diffstat (limited to 'spec/workers/wait_for_cluster_creation_worker_spec.rb')
-rw-r--r--spec/workers/wait_for_cluster_creation_worker_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/workers/wait_for_cluster_creation_worker_spec.rb b/spec/workers/wait_for_cluster_creation_worker_spec.rb
index eed6bec00f8..489dd769c12 100644
--- a/spec/workers/wait_for_cluster_creation_worker_spec.rb
+++ b/spec/workers/wait_for_cluster_creation_worker_spec.rb
@@ -8,7 +8,7 @@ describe WaitForClusterCreationWorker do
before do
allow(operation).to receive(:status).and_return(status)
- allow(operation).to receive(:start_time).and_return(1.minutes.ago)
+ allow(operation).to receive(:start_time).and_return(1.minute.ago)
allow(operation).to receive(:status_message).and_return('error')
allow_any_instance_of(Ci::FetchGcpOperationService).to receive(:execute).and_yield(operation)
end
@@ -17,7 +17,7 @@ describe WaitForClusterCreationWorker do
let(:status) { 'RUNNING' }
it 'reschedules worker' do
- expect(WaitForClusterCreationWorker).to receive(:perform_in)
+ expect(described_class).to receive(:perform_in)
described_class.new.perform(cluster.id)
end