Sha256: 650c91f2d96631fa89760799771edd18f881a4a092911b78128cc1fb7ee1ab6c
Contents?: true
Size: 431 Bytes
Versions: 43
Compression:
Stored size: 431 Bytes
Contents
require 'spec_helper' describe Spree::ProductProperty, type: :model do context "touching" do let(:product_property) { create(:product_property) } let(:product) { product_property.product } before do product.update_columns(updated_at: 1.day.ago) end subject { product_property.touch } it "touches the product" do expect { subject }.to change { product.reload.updated_at } end end end
Version data entries
43 entries across 43 versions & 1 rubygems