Sha256: e2b103e5119f216472da1b5288bc95ebbff8cc3336139ac8bd2799a02f41c521

Contents?: true

Size: 648 Bytes

Versions: 1

Compression:

Stored size: 648 Bytes

Contents

# frozen_string_literal: true

require 'spec_helper'

RSpec.describe SolidusEasypost::ReturnAuthorization, vcr: { cassette_name: 'return_authorization' } do
  describe '#return_label' do
    it 'returns a valid return label' do
      return_authorization = create(:return_item).return_authorization

      easypost_return_authorization = described_class.new(return_authorization)
      selected_easypost_rate = easypost_return_authorization.easypost_shipment.rates.first
      return_label = easypost_return_authorization.return_label(selected_easypost_rate)

      expect(return_label).to have_attributes(object: 'PostageLabel')
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
solidus_easypost-3.0.0 spec/models/solidus_easypost/return_authorization_spec.rb