Sha256: 837b5b9ba757f2982ae9f65f300d0dafb9686a0ed347dcd72a0a846f4dfa506b
Contents?: true
Size: 586 Bytes
Versions: 4
Compression:
Stored size: 586 Bytes
Contents
# frozen_string_literal: true require 'spec_helper' RSpec.describe SolidusGraphqlApi::Queries::Shipment::ShippingRatesQuery do let(:shipment) { create(:shipment, shipping_rates: []) } let(:shipping_rates) { shipment.shipping_rates } context 'when shipment has shipping_rates' do it { expect(described_class.new(shipment: shipment).call.sync).to eq shipping_rates } end context 'when shipment does not have shipping_rates' do before { shipment.shipping_rates.destroy_all } it { expect(described_class.new(shipment: shipment).call.sync).to be_empty } end end
Version data entries
4 entries across 4 versions & 1 rubygems