Sha256: ba7fc59861514a474b31cad8391e7be7c73551f35c683b659784ad479e014246
Contents?: true
Size: 537 Bytes
Versions: 26
Compression:
Stored size: 537 Bytes
Contents
require 'spec_helper' describe SimpleDeploy::Backoff do describe 'exp_periods' do it 'should yield each period' do expected_periods = [2, 4, 8] i = 0 SimpleDeploy::Backoff.exp_periods do |p| expected_periods[i].should == p i += 1 end end it 'should generate and yield a specified number of periods' do expected_periods = [2, 4] i = 0 SimpleDeploy::Backoff.exp_periods(2) do |p| expected_periods[i].should == p i += 1 end end end end
Version data entries
26 entries across 26 versions & 1 rubygems