mirror of
https://github.com/cliffe/SecGen.git
synced 2026-02-22 19:58:03 +00:00
Disable uk specific addresses for now, bug in faker library for config.locale = en-GB)
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user