summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHombreLaser <sebastian-440@live.com>2023-02-21 19:37:31 -0600
committerHombreLaser <sebastian-440@live.com>2023-02-21 19:37:31 -0600
commitee12e868688f49498a19fd671146033d135c99ca (patch)
treee310e47e2e3b4f6539531f2be25693f184e71ef6
parent3ac50b5873bbbef65a5fb413a7df115475f88ba6 (diff)
Añade spec del atributo rol
-rw-r--r--spec/models/user_account_spec.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/spec/models/user_account_spec.rb b/spec/models/user_account_spec.rb
index 0f4dbe9..6ce99e3 100644
--- a/spec/models/user_account_spec.rb
+++ b/spec/models/user_account_spec.rb
@@ -5,4 +5,5 @@ RSpec.describe UserAccount, type: :model do
it { should validate_presence_of(:email) }
it { should validate_presence_of(:first_name) }
it { should validate_presence_of(:last_name) }
+ it { should validate_inclusion_of(:role).in_array(%w[master regular]) }
end