Sha256: caf11dfc4e70fc99585ef8bd6ebe91fbbb797bb41078fb66b4f38bf6acfab8b0

Contents?: true

Size: 530 Bytes

Versions: 2

Compression:

Stored size: 530 Bytes

Contents

require './test/test_helper'


require 'hover/jobs/concerns/retry_network_errors'

class TestJob
  include Hover::Jobs::Concerns::RetryNetworkErrors
end

describe Hover::Jobs::Concerns::RetryNetworkErrors do
  it "sets exceptions array" do
    assert TestJob.instance_variable_get(:@retry_exceptions).is_a?(Array)
  end
  
  it "sets strategy array" do
    assert TestJob.instance_variable_get(:@backoff_strategy).is_a?(Array)
  end
  
  it "instantiates" do
    test_job = TestJob.new
    assert test_job.is_a?(TestJob)
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
hover-ruby-client-0.4.0 test/unit/jobs/concerns/retry_network_errors_test.rb
hover-ruby-client-0.3.1 test/unit/jobs/concerns/retry_network_errors_test.rb