Sha256: 829758c8b466e7aaadb63176ba3b988ac0575b9dd577d9b73bb37dc51b489b35
Contents?: true
Size: 315 Bytes
Versions: 16
Compression:
Stored size: 315 Bytes
Contents
require 'spec_helper' describe Spree::ProductOptionType do describe 'Validations' do it { is_expected.to validate_presence_of(:product) } it { is_expected.to validate_presence_of(:option_type) } it { is_expected.to validate_uniqueness_of(:product_id).scoped_to(:option_type_id).allow_nil } end end
Version data entries
16 entries across 16 versions & 1 rubygems