Sha256: 83fcc929748dbdaf2eea13bdb6089bc4e9e26ae55f0daea1c2b49303bf595600
Contents?: true
Size: 831 Bytes
Versions: 4
Compression:
Stored size: 831 Bytes
Contents
shared_examples :levtera_version do it_should_behave_like :levtera_provided describe 'validations' do it "waiting for array of items validator support" # it { should validate_numericality_of(:power).to_allow only_integer: true, allow_nil: true, greater_than: 0 } # it { should validate_numericality_of(:doors_amount ).to_allow only_integer: true, allow_nil: true, greater_than_or_equal_to: 0 } # it { should validate_numericality_of(:valves_amount).to_allow only_integer: true, allow_nil: true, greater_than: 0 } # it { should validate_inclusion_of(:transmission_type).on(Levtera::Concerns::Version::TRANSMISSION_TYPES) } # it { should validate_inclusion_of(:body_type).on(Levtera::Concerns::Version::BODY_TYPES) } it { should validate_uniqueness_of(:provider_id).scoped_to(:model_id) } end end
Version data entries
4 entries across 4 versions & 1 rubygems