tap/spec/models/user_spec.rb

31 lines
797 B
Ruby
Raw Normal View History

# == Schema Information
#
# Table name: users
#
# id :integer not null, primary key
# created_at :datetime
# updated_at :datetime
# remember_created_at :datetime
# admin :boolean
# dagschotel_id :integer
# avatar_file_name :string
# avatar_content_type :string
# avatar_file_size :integer
# avatar_updated_at :datetime
# orders_count :integer default("0")
# koelkast :boolean default("f")
2015-09-14 17:52:25 +02:00
# name :string
# encrypted_password :string default(""), not null
# private :boolean default("f")
#
describe User do
before :each do
@user = create :user
2015-03-03 18:16:05 +01:00
end
it 'has a valid factory' do
expect(@user).to be_valid
2015-03-03 18:16:05 +01:00
end
2014-11-06 14:46:59 +01:00
end