Sha256: 78233d7db18d402a3e753fcfdb99a0e639894f0af7a69cbdafd93e67b4395059
Contents?: true
Size: 499 Bytes
Versions: 48
Compression:
Stored size: 499 Bytes
Contents
# frozen_string_literal: true 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
48 entries across 48 versions & 2 rubygems