lib/ffaker/product.rb in ffaker-2.15.0 vs lib/ffaker/product.rb in ffaker-2.16.0
- old
+ new
@@ -12,10 +12,10 @@
ADDON = %w[wood forge func].freeze
def brand
case rand(0..11)
when (0..4) then fetch_sample(B1) + fetch_sample(B2)
- when (5..10) then
+ when (5..10)
[
fetch_sample(START), fetch_sample(VOWELS), fetch_sample(SUFFIX),
rand(0..1).zero? ? fetch_sample(ADDON) : nil
].join.capitalize
when 11 then letters(2..3).to_s