Sha256: bd10665dde4215f5eb4fe04685d3204db91f930a38ea23c4ca0d4b8d59e6df77
Contents?: true
Size: 454 Bytes
Versions: 38
Compression:
Stored size: 454 Bytes
Contents
require 'spec_helper' 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
38 entries across 38 versions & 2 rubygems