Sha256: fe4d17938e04f803395e6490fda48afb06834f96492fdc116bc2ec1ac7cb46f2
Contents?: true
Size: 492 Bytes
Versions: 48
Compression:
Stored size: 492 Bytes
Contents
# frozen_string_literal: true require 'rails_helper' RSpec.describe Spree::OptionType, type: :model do context "touching" do it "should touch a product" do product_option_type = create(:product_option_type) option_type = product_option_type.option_type product = product_option_type.product product.update_column(:updated_at, 1.day.ago) option_type.touch expect(product.reload.updated_at).to be_within(3.seconds).of(Time.current) end end end
Version data entries
48 entries across 48 versions & 2 rubygems