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

Version Path
solidus_core-2.10.5 spec/models/spree/variant_property_rule_value_spec.rb
solidus_core-2.10.3 spec/models/spree/variant_property_rule_value_spec.rb
solidus_core-2.10.2 spec/models/spree/variant_property_rule_value_spec.rb
solidus_core-2.9.6 spec/models/spree/variant_property_rule_value_spec.rb
solidus_core-2.8.6 spec/models/spree/variant_property_rule_value_spec.rb
solidus_core-2.10.1 spec/models/spree/variant_property_rule_value_spec.rb
solidus_core-2.9.5 spec/models/spree/variant_property_rule_value_spec.rb
solidus_core-2.10.0 spec/models/spree/variant_property_rule_value_spec.rb
solidus_core-2.9.4 spec/models/spree/variant_property_rule_value_spec.rb
solidus_core-2.6.6 spec/models/spree/variant_property_rule_value_spec.rb
solidus_core-2.7.4 spec/models/spree/variant_property_rule_value_spec.rb
solidus_core-2.8.5 spec/models/spree/variant_property_rule_value_spec.rb
solidus_core-2.9.3 spec/models/spree/variant_property_rule_value_spec.rb
solidus_core-2.9.2 spec/models/spree/variant_property_rule_value_spec.rb
solidus_core-2.10.0.beta1 spec/models/spree/variant_property_rule_value_spec.rb
solidus_core-2.7.3 spec/models/spree/variant_property_rule_value_spec.rb
solidus_core-2.6.5 spec/models/spree/variant_property_rule_value_spec.rb
solidus_core-2.9.1 spec/models/spree/variant_property_rule_value_spec.rb
solidus_core-2.9.0 spec/models/spree/variant_property_rule_value_spec.rb
solidus_core-2.9.0.rc.1 spec/models/spree/variant_property_rule_value_spec.rb