Sha256: 9ec809c9e19197d16aea51e54a6053c6246f05a5241b3291ef86387453354749

Contents?: true

Size: 654 Bytes

Versions: 1

Compression:

Stored size: 654 Bytes

Contents

RSpec.describe SolidusEasypost::AddressBuilder do
  describe '.from_address', vcr: { cassette_name: 'address_builder/from_address' } do
    it 'builds an address with the correct attributes' do
      address = described_class.from_address(build_stubbed(:address))

      expect(address).to have_attributes(object: 'Address')
    end
  end

  describe '.from_stock_location', vcr: { cassette_name: 'address_builder/from_stock_location' } do
    it 'builds an address with the correct attributes' do
      address = described_class.from_stock_location(create(:stock_location))

      expect(address).to have_attributes(object: 'Address')
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
solidus_easypost-3.0.0 spec/solidus_easypost/address_builder_spec.rb