Sha256: 59c795fd8d93d6713dc80cdd7ab15b1e9a7de490c7709cd47bc12f6f02714e9b
Contents?: true
Size: 614 Bytes
Versions: 1
Compression:
Stored size: 614 Bytes
Contents
require 'spec_helper' describe Spree::ShipCompliant, type: :model do let!(:taxonomy) { create(:taxonomy, name: 'Brand') } let!(:brand_taxon) { create(:taxon, taxonomy: taxonomy) } let!(:order) { create(:order_ready_to_ship) } subject { Spree::ShipCompliant.new(order) } context '#address_from_spree_address' do it 'returns the payload address' do expect(subject.address_from_spree_address(order.ship_address)).to_not be_nil end end context '#shipment_items' do it 'returns the 3 first chars of taxon name' do expect(subject.shipment_items).to_not be_nil end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
solidus_ship_compliant-1.0.0 | spec/models/spree/ship_compliant_spec.rb |