blob: d1aff3dd42853798ac2f683ac5b05c93423c6d7e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
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
|