Sha256: 4464521ab6ec03ff7c642872642a5c5778010a5c09c6df8e3ac5be2cd72870ec

Contents?: true

Size: 448 Bytes

Versions: 24

Compression:

Stored size: 448 Bytes

Contents

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

24 entries across 24 versions & 1 rubygems

Version Path
onfido-1.1.1 spec/onfido/connection_error_spec.rb
onfido-0.15.1 spec/onfido/connection_error_spec.rb
onfido-1.1.0 spec/onfido/connection_error_spec.rb
onfido-1.0.0 spec/onfido/connection_error_spec.rb
onfido-0.15.0 spec/onfido/connection_error_spec.rb
onfido-0.14.0 spec/onfido/connection_error_spec.rb
onfido-0.13.0 spec/onfido/connection_error_spec.rb
onfido-0.12.0 spec/onfido/connection_error_spec.rb
onfido-0.11.0 spec/onfido/connection_error_spec.rb
onfido-0.10.0 spec/onfido/connection_error_spec.rb
onfido-0.9.0 spec/onfido/connection_error_spec.rb
onfido-0.8.4 spec/onfido/connection_error_spec.rb
onfido-0.8.3 spec/onfido/connection_error_spec.rb
onfido-0.8.2 spec/onfido/connection_error_spec.rb
onfido-0.8.1 spec/onfido/connection_error_spec.rb
onfido-0.7.1 spec/onfido/connection_error_spec.rb
onfido-0.7.0 spec/onfido/connection_error_spec.rb
onfido-0.6.1 spec/onfido/connection_error_spec.rb
onfido-0.6.0 spec/onfido/connection_error_spec.rb
onfido-0.5.0 spec/onfido/connection_error_spec.rb