Trying to get round generation and fill figured out TDD style
This commit is contained in:
@@ -3,9 +3,13 @@ require 'sham'
|
||||
require 'faker'
|
||||
|
||||
|
||||
Sham.location do
|
||||
"#{Faker::Address.city}, #{Faker::Address.uk_country}"
|
||||
end
|
||||
|
||||
|
||||
Map.blueprint do
|
||||
|
||||
name { Sham.location }
|
||||
end
|
||||
|
||||
|
||||
@@ -25,5 +29,11 @@ end
|
||||
|
||||
|
||||
Requester.blueprint do
|
||||
|
||||
ip do
|
||||
parts = []
|
||||
4.times do
|
||||
parts << (rand * 100).to_i.to_s
|
||||
end
|
||||
parts.join('.')
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user