From 97ba3df5e5970d29064daf56309e73df85a70613 Mon Sep 17 00:00:00 2001 From: HombreLaser Date: Thu, 23 Feb 2023 18:52:25 -0600 Subject: AƱade factory de usuario MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- spec/factories/user_account.rb | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 spec/factories/user_account.rb (limited to 'spec/factories') diff --git a/spec/factories/user_account.rb b/spec/factories/user_account.rb new file mode 100644 index 0000000..1691e0c --- /dev/null +++ b/spec/factories/user_account.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +FactoryBot.define do + factory :user_account, class: 'UserAccount' do + email { Faker::Internet.email } + first_name { Faker::Name.first_name } + last_name { Faker::Name.last_name } + password { SecureRandom.hex(32) } + role { 'regular' } + end +end -- cgit v1.2.3