tab/spec/factories/users.rb

22 lines
464 B
Ruby
Raw Normal View History

2015-09-08 11:44:40 +02:00
# == Schema Information
#
# Table name: users
#
# id :integer not null, primary key
# name :string
# balance :integer default(0), not null
# penning :boolean default(FALSE), not null
# created_at :datetime not null
# updated_at :datetime not null
#
FactoryBot.define do
2015-09-08 11:30:11 +02:00
factory :user do
2015-09-08 13:37:30 +02:00
name { Faker::Internet.user_name }
factory :penning do
penning { true }
2015-09-08 13:37:30 +02:00
end
2015-09-08 11:30:11 +02:00
end
end