From bfeb3c5a9539a368f71056913f5654f6d88626cf Mon Sep 17 00:00:00 2001 From: HombreLaser Date: Tue, 21 Feb 2023 19:18:42 -0600 Subject: AƱade spec del modelo de usuario MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- spec/models/user_account_spec.rb | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 spec/models/user_account_spec.rb (limited to 'spec') diff --git a/spec/models/user_account_spec.rb b/spec/models/user_account_spec.rb new file mode 100644 index 0000000..0f4dbe9 --- /dev/null +++ b/spec/models/user_account_spec.rb @@ -0,0 +1,8 @@ +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) } +end -- cgit v1.2.3