blob: 6ce99e3c02ba9b7dc6b9b60381cf6ca814889fe1 (
plain)
1
2
3
4
5
6
7
8
9
|
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) }
it { should validate_inclusion_of(:role).in_array(%w[master regular]) }
end
|