Sha256: e78d25b4199ace53402904b78b7c654e55addb77757e88ae73b464bd8449d49c

Contents?: true

Size: 626 Bytes

Versions: 22

Compression:

Stored size: 626 Bytes

Contents

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

22 entries across 22 versions & 1 rubygems

Version Path
nanoc-4.7.9 spec/contributors_spec.rb
nanoc-4.7.8 spec/contributors_spec.rb
nanoc-4.7.7 spec/contributors_spec.rb
nanoc-4.7.6 spec/contributors_spec.rb
nanoc-4.7.5 spec/contributors_spec.rb
nanoc-4.7.4 spec/contributors_spec.rb
nanoc-4.7.3 spec/contributors_spec.rb
nanoc-4.7.2 spec/contributors_spec.rb
nanoc-4.7.1 spec/contributors_spec.rb
nanoc-4.7.0 spec/contributors_spec.rb
nanoc-4.6.4 spec/contributors_spec.rb
nanoc-4.6.3 spec/contributors_spec.rb
nanoc-4.6.2 spec/contributors_spec.rb
nanoc-4.6.1 spec/contributors_spec.rb
nanoc-4.6.0 spec/contributors_spec.rb
nanoc-4.5.4 spec/contributors_spec.rb
nanoc-4.5.3 spec/contributors_spec.rb
nanoc-4.5.2 spec/contributors_spec.rb
nanoc-4.5.1 spec/contributors_spec.rb
nanoc-4.5.0 spec/contributors_spec.rb