lib/vercon/factories.rb in vercon-0.0.1 vs lib/vercon/factories.rb in vercon-0.0.2

- old
+ new

@@ -1,21 +1,21 @@ # frozen_string_literal: true -require 'dry/files' -require 'prism' +require "dry/files" +require "prism" module Vercon class Factories - PATH = './spec/factories' + PATH = "./spec/factories" def initialize @files = Dry::Files.new end def load return unless @files.directory?(PATH) - Dir[@files.expand_path(@files.join(PATH, '**', '*.rb'))].map do |file_path| + Dir[@files.expand_path(@files.join(PATH, "**", "*.rb"))].map do |file_path| load_factory(file_path) end.flatten.compact end private