Template - Rails 7 view component Projet d'origine: Veracyte Stack: - Rails 7 - Ruby 3.1 - ViewComponent configuré comme on veut - Tailwind
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

11 lines
258 B

# frozen_string_literal: true
require 'rails_helper'
RSpec.describe User, type: :model do
describe 'Validations' do
%i[email first_name last_name role].each do |attribute|
it { is_expected.to validate_presence_of(attribute) }
end
end
end