Sha256: ab86908e02ffe8c2d24cb8c438edf65717fd2cc862b40944514f27cfb9caa9b1
Contents?: true
Size: 713 Bytes
Versions: 21
Compression:
Stored size: 713 Bytes
Contents
# frozen_string_literal: true class Readme end describe Readme do def testing_for(s) puts "Testing for #{s}..." end def ok puts 'OK' end it 'requires each tool to have a README' do next if File.exist?("sectests/#{ENV['sectest_name']}/.parent_only") puts "Looking for README.md in: sectests/#{ENV['sectest_name']}..." readme = File.read "sectests/#{ENV['sectest_name']}/README.md" ok testing_for 'variant READMEs' puts 'No variants for this tool' unless Dir.exist?("sectests/#{ENV['sectest_name']}/variants") ok Dir.glob("sectests/#{ENV['sectest_name']}/variants/*").each do |variant| readme = File.read "#{variant}/README.md" ok end end end
Version data entries
21 entries across 21 versions & 1 rubygems
Version | Path |
---|---|
norad_cli-0.1.2 | lib/norad_cli/support/readme_spec.rb |