summaryrefslogtreecommitdiff
path: root/spec/factories
diff options
context:
space:
mode:
Diffstat (limited to 'spec/factories')
-rw-r--r--spec/factories/company.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/spec/factories/company.rb b/spec/factories/company.rb
new file mode 100644
index 0000000..e4ae7d6
--- /dev/null
+++ b/spec/factories/company.rb
@@ -0,0 +1,9 @@
+# frozen_string_literal: true
+
+FactoryBot.define do
+ factory :company, class: 'Company' do
+ name { Faker::Company.name }
+ short_name { Faker::Lorem.word }
+ country { ISO3166::Country.codes.sample }
+ end
+end