spec/support/example_groups/version_groups.rb in levtera-0.2.2 vs spec/support/example_groups/version_groups.rb in levtera-0.2.3

- old
+ new

@@ -6,8 +6,9 @@ # 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