Sha256: dc715a919a199b4721bb591d43ac336fef36280604e58bb4da94f0ee6d4bbea8
Contents?: true
Size: 507 Bytes
Versions: 4
Compression:
Stored size: 507 Bytes
Contents
shared_examples :levtera_vehicle do it_should_behave_like :levtera_provided it { should validate_numericality_of(:fabrication_year).to_allow only_integer: true, allow_nil: true, greater_than: 0 } it { should validate_numericality_of(:model_year).to_allow only_integer: true, allow_nil: true, greater_than: 0 } it { should validate_inclusion_of(:engine_feeding).on(Levtera::Concerns::Vehicle::ENGINE_FEEDINGS_NAMES) } it { should validate_uniqueness_of(:provider_id).scoped_to(:version_id) } end
Version data entries
4 entries across 4 versions & 1 rubygems