FactoryBoy.define do
sequence(:cellphone, 100) {|n| n} # 100 is init value
factory :user do
cellphone {generate(:cellphone)}
end
end
FactoryBoy.create(:user, name: '123')
FactoryBoy.define do
factory :user do
end
factory :admin do
user
end
end