summaryrefslogtreecommitdiff
path: root/spec/lib/bulk_imports/retry_pipeline_error_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/lib/bulk_imports/retry_pipeline_error_spec.rb')
-rw-r--r--spec/lib/bulk_imports/retry_pipeline_error_spec.rb13
1 files changed, 13 insertions, 0 deletions
diff --git a/spec/lib/bulk_imports/retry_pipeline_error_spec.rb b/spec/lib/bulk_imports/retry_pipeline_error_spec.rb
new file mode 100644
index 00000000000..9d96407b03a
--- /dev/null
+++ b/spec/lib/bulk_imports/retry_pipeline_error_spec.rb
@@ -0,0 +1,13 @@
+# frozen_string_literal: true
+
+require 'spec_helper'
+
+RSpec.describe BulkImports::RetryPipelineError do
+ describe '#retry_delay' do
+ it 'returns retry_delay' do
+ exception = described_class.new('Error!', 60)
+
+ expect(exception.retry_delay).to eq(60)
+ end
+ end
+end