diff options
author | HombreLaser <sebastian-440@live.com> | 2023-02-21 19:37:31 -0600 |
---|---|---|
committer | HombreLaser <sebastian-440@live.com> | 2023-02-21 19:37:31 -0600 |
commit | ee12e868688f49498a19fd671146033d135c99ca (patch) | |
tree | e310e47e2e3b4f6539531f2be25693f184e71ef6 /spec/models | |
parent | 3ac50b5873bbbef65a5fb413a7df115475f88ba6 (diff) |
Añade spec del atributo rol
Diffstat (limited to 'spec/models')
-rw-r--r-- | spec/models/user_account_spec.rb | 1 |
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 |