Sha256: a8ba27c0d6bed259edc74aeed47fe53d4d2c89d9fce78f011bd2f2f21e0df0c0
Contents?: true
Size: 468 Bytes
Versions: 11
Compression:
Stored size: 468 Bytes
Contents
require 'rails_helper' RSpec.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
11 entries across 11 versions & 1 rubygems