Finished phase005
CI / scan_ruby (push) Failing after 1m5s
CI / scan_js (push) Failing after 6s
CI / lint (push) Failing after 1m29s

This commit is contained in:
2026-09-16 15:34:50 -06:00
parent a3a65c24ed
commit 0826d267f2
38 changed files with 1596 additions and 9 deletions
+8
View File
@@ -45,6 +45,14 @@ RSpec.describe Vehicle do
expect(vehicle.vin).to eq("ABC123")
end
it "normalizes licence plate to uppercase" do
vehicle = build(:vehicle, licence_plate: "kj7cyt")
vehicle.valid?
expect(vehicle.licence_plate).to eq("KJ7CYT")
end
it "requires VIN to be unique after normalization" do
create(:vehicle, vin: "ABC123")