foodsoft/spec/support/faker.rb

10 lines
150 B
Ruby
Raw Permalink Normal View History

2020-07-27 17:39:56 +02:00
module Faker
class Unit
class << self
def unit
['kg', '1L', '100ml', 'piece', 'bunch', '500g'].sample
end
end
end
end