Sha256: fd72737624630410696cce65193c3a32407a02c243fe25440323b04a19a37017

Contents?: true

Size: 714 Bytes

Versions: 3

Compression:

Stored size: 714 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

3 entries across 3 versions & 1 rubygems

Version Path
norad_cli-0.2.1 lib/norad_cli/support/readme_spec.rb
norad_cli-0.2.0 lib/norad_cli/support/readme_spec.rb
norad_cli-0.1.24 lib/norad_cli/support/readme_spec.rb