Sha256: dd4a23a0d6b80aa18d25f1ec00fe5a8b4cfb75a06c545ba270a15e846024e097

Contents?: true

Size: 275 Bytes

Versions: 7

Compression:

Stored size: 275 Bytes

Contents

FactoryBot.define do
  factory :user do |f|
    f.username   { Faker::Internet.user_name }
    f.email      { Faker::Internet.email }
    f.first_name { Faker::Name.first_name }
    f.last_name  { Faker::Name.last_name }
    f.post_id    { ((1..100).to_a).sample }
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
ajax-datatables-rails-1.3.0 spec/factories/user.rb
ajax-datatables-rails-1.2.0 spec/factories/user.rb
ajax-datatables-rails-1.1.0 spec/factories/user.rb
ajax-datatables-rails-1.0.0 spec/factories/user.rb
ajax-datatables-rails-0.4.3 spec/factories/user.rb
ajax-datatables-rails-0.4.2 spec/factories/user.rb
ajax-datatables-rails-0.4.1 spec/factories/user.rb