Sha256: f68812e8ea453c192bb5a32f392fa1ee5e300e88b9ff58473ad952489e18d2b2
Contents?: true
Size: 490 Bytes
Versions: 48
Compression:
Stored size: 490 Bytes
Contents
# frozen_string_literal: true require 'rails_helper' RSpec.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
48 entries across 48 versions & 2 rubygems