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

Version Path
spree_core-3.3.0.rc1 spec/models/spree/product_option_type_spec.rb
spree_core-3.1.5 spec/models/spree/product_option_type_spec.rb
spree_core-3.2.1 spec/models/spree/product_option_type_spec.rb
spree_core-3.2.0 spec/models/spree/product_option_type_spec.rb
spree_core-3.1.4 spec/models/spree/product_option_type_spec.rb
spree_core-3.2.0.rc3 spec/models/spree/product_option_type_spec.rb
spree_core-3.2.0.rc2 spec/models/spree/product_option_type_spec.rb
spree_core-3.2.0.rc1 spec/models/spree/product_option_type_spec.rb
spree_core-3.1.3 spec/models/spree/product_option_type_spec.rb
spree_core-3.1.2 spec/models/spree/product_option_type_spec.rb
spree_core-3.1.1 spec/models/spree/product_option_type_spec.rb
spree_core-3.1.0 spec/models/spree/product_option_type_spec.rb
spree_core-3.1.0.rc4 spec/models/spree/product_option_type_spec.rb
spree_core-3.1.0.rc3 spec/models/spree/product_option_type_spec.rb
spree_core-3.1.0.rc2 spec/models/spree/product_option_type_spec.rb
spree_core-3.1.0.rc1 spec/models/spree/product_option_type_spec.rb