Sha256: f46f055d12a0be587c35981cb7aafe709eec1ca56c605d98c3f60fdc89284044

Contents?: true

Size: 479 Bytes

Versions: 13

Compression:

Stored size: 479 Bytes

Contents

# frozen_string_literal: true

describe Onfido::ConnectionError do
  subject(:error) do
    described_class.new(
      'Invalid response object from API',
      response_code: response_code,
      response_body: response_body
    )
  end

  let(:response_code) { nil }
  let(:response_body) { nil }

  context 'without a response_body' do
    its(:json_body) { is_expected.to be_nil }
    its(:type) { is_expected.to be_nil }
    its(:fields) { is_expected.to be_nil }
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
onfido-2.9.0 spec/onfido/connection_error_spec.rb
onfido-2.8.0 spec/onfido/connection_error_spec.rb
onfido-2.7.0 spec/onfido/connection_error_spec.rb
onfido-2.6.0 spec/onfido/connection_error_spec.rb
onfido-2.5.0 spec/onfido/connection_error_spec.rb
onfido-2.4.0 spec/onfido/connection_error_spec.rb
onfido-2.3.0 spec/onfido/connection_error_spec.rb
onfido-2.2.0 spec/onfido/connection_error_spec.rb
onfido-2.1.1 spec/onfido/connection_error_spec.rb
onfido-2.1.0 spec/onfido/connection_error_spec.rb
onfido-2.0.2 spec/onfido/connection_error_spec.rb
onfido-2.0.1 spec/onfido/connection_error_spec.rb
onfido-2.0.0 spec/onfido/connection_error_spec.rb