summaryrefslogtreecommitdiff
path: root/spec/factories
diff options
context:
space:
mode:
authorHombreLaser <sebastian-440@live.com>2023-03-10 21:40:37 -0600
committerHombreLaser <sebastian-440@live.com>2023-03-10 21:40:37 -0600
commitb174a733a5ba58f1d9802feaa4793b4a6c2df523 (patch)
tree71e1022301b0e860b1d65a85f493ea7fd2711200 /spec/factories
parent5faf9807968ce9f7f548474afdc31029e57103dc (diff)
Añade specs del controlador de companies
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