Sha256: 0b8e5ab968e934cdbed7524e9c9f61489373faedae59af4e77bb519394216dc6

Contents?: true

Size: 413 Bytes

Versions: 7

Compression:

Stored size: 413 Bytes

Contents

# frozen_string_literal: true

require 'spec_helper'

RSpec.describe Spree::Variant, type: :model do
  let(:variant) { build_stubbed :variant }

  describe "#pretty_name" do
    subject(:pretty_name) { variant.pretty_name }

    it 'includes the product and options', :aggregate_failures do
      expect(pretty_name).to match variant.name
      expect(pretty_name).to match variant.options_text
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
solidus_subscriptions-2.0.2 spec/models/spree/variant_spec.rb
solidus_subscriptions-2.0.1 spec/models/spree/variant_spec.rb
solidus_subscriptions-2.0.0 spec/models/spree/variant_spec.rb
solidus_subscriptions-1.1.0 spec/models/spree/variant_spec.rb
solidus_subscriptions-1.0.1 spec/models/spree/variant_spec.rb
solidus_subscriptions-1.0.0 spec/models/spree/variant_spec.rb
solidus_subscriptions-1.0.0.rc1 spec/models/spree/variant_spec.rb