# frozen_string_literal: true

require "rails_helper"

RSpec.describe SolidusPromotions::ShippingRateDiscount do
  subject(:shipping_rate_discount) { build(:solidus_shipping_rate_discount) }

  it { is_expected.to belong_to(:shipping_rate) }

  it { is_expected.to respond_to(:shipping_rate) }
  it { is_expected.to respond_to(:benefit) }
  it { is_expected.to respond_to(:amount) }
  it { is_expected.to respond_to(:display_amount) }
  it { is_expected.to respond_to(:label) }
end
