lib/rordan_gramsay/lint/test_checker.rb
# Model for each file used by TestChecker
Model for each file used by TestChecker
Model for each file used by TestChecker
def files
        Dir.glob("#{base_dir}/test/*/*").map do |dir|
          if File.exist?(File.join(dir, 'inspec.yml'))
            Dir.glob("#{dir}/controls/*.rb")
          else
            Dir.glob("#{dir}/**/*_test.rb")
          end
        end.flatten
      end
def files Dir . glob ( "#{base_dir}/test/*/*" ) . map do | dir | if File . exist? ( File . join ( dir , 'inspec.yml' ) ) Dir . glob ( "#{dir}/controls/*.rb" ) else Dir . glob ( "#{dir}/**/*_test.rb" ) end end . flatten end
Model for each file used by TestChecker
Model for each file used by TestChecker