Sha256: c3075fa712bf1692e8a8c466a6a95a48927a92cdd03a623e8faff929e6707c6c
Contents?: true
Size: 452 Bytes
Versions: 15
Compression:
Stored size: 452 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.now) end end end
Version data entries
15 entries across 15 versions & 2 rubygems