Disable uk specific addresses for now, bug in faker library for config.locale = en-GB)

This commit is contained in:
thomashaw
2022-11-07 13:23:40 +00:00
parent b96406cd34
commit fca33945d1

View File

@@ -9,14 +9,16 @@ class UKAddressGenerator < StringGenerator
end
def generate
Faker::Config.locale = 'en-GB'
# Faker::Config.locale = 'en-GB'
# TODO: Currently a bug in Faker library with en-gb, use default for now.
street_name = Faker::Address.street_address
city = Faker::Address.city
county = Faker::Address.county
# county = Faker::Address.county
postcode = Faker::Address.postcode
self.outputs << street_name + ', ' + city + ', ' + county + ', ' + postcode
# self.outputs << street_name + ', ' + city + ', ' + county + ', ' + postcode
self.outputs << street_name + ', ' + city + ', ' + postcode
end
end