Sha256: 5779351e0844ff053968f54e1df4ee7b3f6f011f24f556313cbfcec1ca0468b7
Contents?: true
Size: 492 Bytes
Versions: 29
Compression:
Stored size: 492 Bytes
Contents
describe 'Documentation' do it 'makes sure all Markdown links are valid' do check_stdout = `bundle exec tools/check_md README.md #{Dir.glob('docs/**/*.md').join(' ')}`.split("\n") summary_idx = check_stdout.index { |line| line =~ /^\d+ errors:$/ } expect(summary_idx).not_to eq(nil), "Could not parse check output: #{check_stdout.join("\n")}" expect(check_stdout[summary_idx]).to eq('0 errors:'), "Invalid links found: #{check_stdout[summary_idx..].join("\n")}" end end
Version data entries
29 entries across 29 versions & 1 rubygems