diff options
author | HombreLaser <sebastian-440@live.com> | 2023-02-21 19:18:42 -0600 |
---|---|---|
committer | HombreLaser <sebastian-440@live.com> | 2023-02-21 19:18:42 -0600 |
commit | bfeb3c5a9539a368f71056913f5654f6d88626cf (patch) | |
tree | d36db83a36c383c7a50362d5917dcf885a3b69a8 /spec/models | |
parent | 6c7308ad219bfd9deebe44630165375f2d22e3cc (diff) |
Añade spec del modelo de usuario
Diffstat (limited to 'spec/models')
-rw-r--r-- | spec/models/user_account_spec.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/spec/models/user_account_spec.rb b/spec/models/user_account_spec.rb new file mode 100644 index 0000000..0f4dbe9 --- /dev/null +++ b/spec/models/user_account_spec.rb @@ -0,0 +1,8 @@ +require 'rails_helper' + +RSpec.describe UserAccount, type: :model do + it { should have_secure_password } + it { should validate_presence_of(:email) } + it { should validate_presence_of(:first_name) } + it { should validate_presence_of(:last_name) } +end |