summaryrefslogtreecommitdiff
path: root/spec/models
diff options
context:
space:
mode:
authorHombreLaser <sebastian-440@live.com>2023-02-21 19:18:42 -0600
committerHombreLaser <sebastian-440@live.com>2023-02-21 19:18:42 -0600
commitbfeb3c5a9539a368f71056913f5654f6d88626cf (patch)
treed36db83a36c383c7a50362d5917dcf885a3b69a8 /spec/models
parent6c7308ad219bfd9deebe44630165375f2d22e3cc (diff)
Añade spec del modelo de usuario
Diffstat (limited to 'spec/models')
-rw-r--r--spec/models/user_account_spec.rb8
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