Sha256: fcaada7e0d98d65fcf8f14d88dff42a8ab30cb0b7045691bcea17b2b0f6a2424
Contents?: true
Size: 760 Bytes
Versions: 1
Compression:
Stored size: 760 Bytes
Contents
# frozen_string_literal: true require 'spec_helper' RSpec.describe Spree::Address, :vcr do let(:address) { create :address } describe '#easypost_address' do subject { address.easypost_address } it 'is an EasyPost::Address object' do expect(subject).to be_a(EasyPost::Address) end it 'has the correct attributes' do # combination of original address factory from easy post # and the spree_modification factories expect(subject).to have_attributes( name: 'John Doe', company: 'Company', street1: '215 N 7th Ave', street2: 'Northwest', city: 'Manville', state: 'NJ', zip: '08835', country: 'US', phone: '5555550199' ) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
solidus_easypost-2.0.0 | spec/models/spree/address_spec.rb |