Sha256: 7319a120b61751dfcb0340be4e0a0e69d7fbc39781d06e8b4d1a0d44a1cd58f2

Contents?: true

Size: 657 Bytes

Versions: 18

Compression:

Stored size: 657 Bytes

Contents

# frozen_string_literal: true

describe 'list of contributors in README', chdir: false do
  let(:contributors_in_readme) do
    File.readlines('README.md').last.chomp("\n").split(', ')
  end

  let(:contributors_in_release_notes) do
    File.read('NEWS.md').scan(/\[[^\]]+\]$/).map { |s| s[1..-2].split(', ') }.flatten
  end

  it 'should include everyone mentioned in NEWS.md' do
    diff = (contributors_in_release_notes - contributors_in_readme).uniq.sort
    expect(diff).to be_empty, "some contributors are missing from the README: #{diff.join(', ')}"
  end

  it 'should be sorted' do
    expect(contributors_in_readme).to be_humanly_sorted
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
nanoc-4.8.12 spec/contributors_spec.rb
nanoc-4.8.11 spec/contributors_spec.rb
nanoc-4.8.10 spec/contributors_spec.rb
nanoc-4.8.9 spec/contributors_spec.rb
nanoc-4.8.8 spec/contributors_spec.rb
nanoc-4.8.7 spec/contributors_spec.rb
nanoc-4.8.6 spec/contributors_spec.rb
nanoc-4.8.5 spec/contributors_spec.rb
nanoc-4.8.4 spec/contributors_spec.rb
nanoc-4.8.3 spec/contributors_spec.rb
nanoc-4.8.2 spec/contributors_spec.rb
nanoc-4.8.1 spec/contributors_spec.rb
nanoc-4.8.0 spec/contributors_spec.rb
nanoc-4.7.14 spec/contributors_spec.rb
nanoc-4.7.13 spec/contributors_spec.rb
nanoc-4.7.12 spec/contributors_spec.rb
nanoc-4.7.11 spec/contributors_spec.rb
nanoc-4.7.10 spec/contributors_spec.rb