Sha256: 7f4e090cfdef88f62f473ce1766217984144e7125010ee22c030aec024033fa6

Contents?: true

Size: 325 Bytes

Versions: 5

Compression:

Stored size: 325 Bytes

Contents

require 'spec_helper'

describe Affirm::AddressValidator do
  it 'detects when region1_code is missing' do
    input_addr = {
      state: 'California for example'
    }
    output = Affirm::AddressValidator.normalize_affirm_address(
      input_addr)
    expect(output['region1_code']).to eq(input_addr['state'])
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
spree_affirm-0.2.30 spec/models/affirm_address_validator_spec.rb
spree_affirm-0.2.3 spec/models/affirm_address_validator_spec.rb
spree_affirm-0.2.22 spec/models/affirm_address_validator_spec.rb
spree_affirm-0.2.21 spec/models/affirm_address_validator_spec.rb
spree_affirm-0.2.20 spec/models/affirm_address_validator_spec.rb