diff options
Diffstat (limited to 'spec/models/spree/variant_spec.rb')
-rw-r--r-- | spec/models/spree/variant_spec.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/models/spree/variant_spec.rb b/spec/models/spree/variant_spec.rb index 255b46b..3627fc7 100644 --- a/spec/models/spree/variant_spec.rb +++ b/spec/models/spree/variant_spec.rb @@ -6,11 +6,11 @@ RSpec.describe Spree::Variant, type: :model do let(:variant) { build_stubbed :variant } describe "#pretty_name" do - subject { variant.pretty_name } + subject(:pretty_name) { 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 + expect(pretty_name).to match variant.name + expect(pretty_name).to match variant.options_text end end end |