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
|
|
|
|
#
|
|
|
|
|
2015-09-10 22:25:52 +02:00
|
|
|
require 'rails_helper'
|
2015-09-09 20:11:59 +02:00
|
|
|
|
2015-09-10 22:25:52 +02:00
|
|
|
RSpec.describe User, type: :model do
|
2015-09-08 14:00:11 +02:00
|
|
|
it "has a valid factory" do
|
2015-09-10 22:25:52 +02:00
|
|
|
expect(create(:user)).to be_valid
|
2015-09-08 14:00:11 +02:00
|
|
|
end
|
2015-09-08 11:30:11 +02:00
|
|
|
end
|