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.23 lib/norad_cli/support/readme_spec.rb
norad_cli-0.1.22 lib/norad_cli/support/readme_spec.rb
norad_cli-0.1.21 lib/norad_cli/support/readme_spec.rb
norad_cli-0.1.20 lib/norad_cli/support/readme_spec.rb
norad_cli-0.1.19 lib/norad_cli/support/readme_spec.rb
norad_cli-0.1.18 lib/norad_cli/support/readme_spec.rb
norad_cli-0.1.17 lib/norad_cli/support/readme_spec.rb
norad_cli-0.1.16 lib/norad_cli/support/readme_spec.rb
norad_cli-0.1.15 lib/norad_cli/support/readme_spec.rb
norad_cli-0.1.14 lib/norad_cli/support/readme_spec.rb
norad_cli-0.1.13 lib/norad_cli/support/readme_spec.rb
norad_cli-0.1.12 lib/norad_cli/support/readme_spec.rb
norad_cli-0.1.11 lib/norad_cli/support/readme_spec.rb
norad_cli-0.1.10 lib/norad_cli/support/readme_spec.rb
norad_cli-0.1.9 lib/norad_cli/support/readme_spec.rb
norad_cli-0.1.8 lib/norad_cli/support/readme_spec.rb
norad_cli-0.1.6 lib/norad_cli/support/readme_spec.rb
norad_cli-0.1.5 lib/norad_cli/support/readme_spec.rb
norad_cli-0.1.4 lib/norad_cli/support/readme_spec.rb
norad_cli-0.1.3 lib/norad_cli/support/readme_spec.rb