From b174a733a5ba58f1d9802feaa4793b4a6c2df523 Mon Sep 17 00:00:00 2001 From: HombreLaser Date: Fri, 10 Mar 2023 21:40:37 -0600 Subject: AƱade specs del controlador de companies MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- spec/factories/company.rb | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 spec/factories/company.rb (limited to 'spec/factories') 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 -- cgit v1.2.3