summaryrefslogtreecommitdiff
path: root/spec/factories
diff options
context:
space:
mode:
Diffstat (limited to 'spec/factories')
-rw-r--r--spec/factories/user_account.rb11
1 files changed, 11 insertions, 0 deletions
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