Sha256: 04ed0633cc902b6dcc6706c17a2fb07eb9b9d257e39aab252737763dbca3ee76
Contents?: true
Size: 980 Bytes
Versions: 4
Compression:
Stored size: 980 Bytes
Contents
require_relative "spec_helper" describe Retriable::Config do subject do Retriable::Config end it "sleep defaults to enabled" do subject.new.sleep_disabled.must_equal false end it "tries defaults to 3" do subject.new.tries.must_equal 3 end it "max interval defaults to 60" do subject.new.max_interval.must_equal 60 end it "randomization factor defaults to 0.5" do subject.new.base_interval.must_equal 0.5 end it "multiplier defaults to 1.5" do subject.new.multiplier.must_equal 1.5 end it "max elapsed time defaults to 900" do subject.new.max_elapsed_time.must_equal 900 end it "intervals defaults to nil" do subject.new.intervals.must_be_nil end it "timeout defaults to nil" do subject.new.timeout.must_be_nil end it "on defaults to [StandardError]" do subject.new.on.must_equal [StandardError] end it "on retry handler defaults to nil" do subject.new.on_retry.must_be_nil end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
retriable-2.0.2 | spec/config_spec.rb |
retriable-2.0.1 | spec/config_spec.rb |
retriable-2.0.0 | spec/config_spec.rb |
retriable-2.0.0.beta5 | spec/config_spec.rb |