summaryrefslogtreecommitdiff
path: root/spec/models/spree/variant_spec.rb
blob: 255b46bc764a48ec7bb71093da029ab4bece6473 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# frozen_string_literal: true

require 'spec_helper'

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

  describe "#pretty_name" do
    subject { variant.pretty_name }

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