Sha256: c228a858e7f3cfbdcb5a77f5f7e4586108079767bfd67ead9e0f861e0f94172c
Contents?: true
Size: 431 Bytes
Versions: 5
Compression:
Stored size: 431 Bytes
Contents
require 'spec_helper' describe Spree::ProductProperty, :type => :model do context "validations" do it "should validate length of value" do pp = create(:product_property) pp.value = "x" * 256 expect(pp).not_to be_valid end end context "touching" do it "should update product" do pp = create(:product_property) expect(pp.product).to receive(:touch) pp.touch end end end
Version data entries
5 entries across 5 versions & 1 rubygems