Sha256: 88761a2b9ac21f9fb6f008e601612b0073da4afe3e4e8035f3f55ba4c2ce64a8
Contents?: true
Size: 461 Bytes
Versions: 43
Compression:
Stored size: 461 Bytes
Contents
require 'spec_helper' describe Spree::VariantPropertyRuleCondition, type: :model do context "touching" do let(:rule_condition) { create(:variant_property_rule_condition) } before do rule_condition.variant_property_rule.update_columns(updated_at: 1.day.ago) end it "should update the variant property rule" do expect { rule_condition.touch }.to change { rule_condition.reload.variant_property_rule.updated_at } end end end
Version data entries
43 entries across 43 versions & 1 rubygems