summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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