Skip to content

armgit / spree

Public Imported from GitHub
0

Open Source Platform for DTC, B2B Commerce, Marketplaces & Omnichannel. REST APIs, TypeScript SDKs, and production-ready Next.js storefront. Self-host it. Own your data. No vendor lock-in. Zero platform fees.

adjust ProductProperty specs

Łukasz Adamczyk9c847fd798d3
diff --git a/core/spec/models/spree/product_property_spec.rb b/core/spec/models/spree/product_property_spec.rb
index 0fd12ca7d6..b44b02a48b 100644
--- a/core/spec/models/spree/product_property_spec.rb
+++ b/core/spec/models/spree/product_property_spec.rb
@@ -2,10 +2,16 @@ require 'spec_helper'
describe Spree::ProductProperty, type: :model do
context 'touching' do
+ let(:product_property) { create(:product_property) }
+
it 'updates product' do
- pp = create(:product_property)
- expect(pp.product).to receive(:touch)
- pp.touch
+ expect(product_property.product).to receive(:touch)
+ product_property.touch
+ end
+
+ it 'updates property' do
+ expect(product_property.property).to receive(:touch)
+ product_property.touch
end
end