spec/factories/units.rb in okei-0.0.2 vs spec/factories/units.rb in okei-1.0.0.pre.rc

- old
+ new

@@ -4,10 +4,9 @@ FactoryGirl.define do chars = ("A".."Z").to_a factory :unit, class: Okei::Unit do - uuid { SecureRandom.uuid } sequence(:name) { |n| "Единица #{ n }" } sequence(:code) { |n| "ЕИ #{ n }" } sequence(:num) { |n| format "%03d", (n + 1) % 999 } sequence(:int_code) { |n| chars[n % 25] + chars[n % 24] + chars[n % 23] } base { "М" }