Sha256: b5281c591eed9c2284aa4642c6d3e175b5259c3094cde44539a437cd2f2a5680
Contents?: true
Size: 452 Bytes
Versions: 43
Compression:
Stored size: 452 Bytes
Contents
require 'spec_helper' describe Spree::VariantPropertyRuleValue, type: :model do context "touching" do let(:rule_value) { create(:variant_property_rule_value) } let(:rule) { rule_value.variant_property_rule } before do rule.update_columns(updated_at: 1.day.ago) end subject { rule_value.touch } it "touches the variant property rule" do expect { subject }.to change { rule.reload.updated_at } end end end
Version data entries
43 entries across 43 versions & 1 rubygems