Run rubocop --fix-layout and remove encoding comments
This commit is contained in:
parent
fa63e6e81d
commit
ea2862fdef
283 changed files with 1164 additions and 1969 deletions
|
|
@ -1,7 +1,6 @@
|
|||
require 'factory_bot'
|
||||
|
||||
FactoryBot.define do
|
||||
|
||||
factory :supplier do
|
||||
name { Faker::Company.name.truncate(30) }
|
||||
phone { Faker::PhoneNumber.phone_number }
|
||||
|
|
@ -14,6 +13,7 @@ FactoryBot.define do
|
|||
before :create do |supplier, evaluator|
|
||||
next if supplier.class == SharedSupplier
|
||||
next if supplier.supplier_category_id?
|
||||
|
||||
supplier.supplier_category = create :supplier_category
|
||||
end
|
||||
|
||||
|
|
@ -30,5 +30,4 @@ FactoryBot.define do
|
|||
sequence(:name) { |n| Faker::Lorem.characters(number: rand(2..12)) + " ##{n}" }
|
||||
financial_transaction_class
|
||||
end
|
||||
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue