Browse Source

fix: ensure random field id is in correct range

pull/1334/head
Sam Seed 3 years ago committed by Phil Lee
parent
commit
f5a5426836
  1. 2
      spec/factories/bulk_upload_error.rb

2
spec/factories/bulk_upload_error.rb

@ -9,7 +9,7 @@ FactoryBot.define do
tenant_code { SecureRandom.hex(4) }
property_ref { SecureRandom.hex(4) }
purchaser_code { SecureRandom.hex(4) }
field { "field_#{rand(134)}" }
field { "field_#{rand(134) + 1}" }
error { "some error" }
end
end

Loading…
Cancel
Save