Sha256: d6b08cf6c214220b70f9355eb5a2a515c34f9aa811bf4ebe81234d9995666861

Contents?: true

Size: 685 Bytes

Versions: 7

Compression:

Stored size: 685 Bytes

Contents

require File.join(File.dirname(File.dirname(File.expand_path(__FILE__))), 'spec_helper')
require 'find'

describe 'gem manifest' do
  before :each do
    @current_files = []
    Find.find '.' do |path|
      next unless File.file? path
      next if path =~ /\.git|\.idea|build|doc|gem\/|tmp|nbproject|quality|xp.reek|Manifest.txt|develop.rake|deployment.rake/
      @current_files << path[2..-1]
    end
    @current_files.sort!
    @manifest = IO.readlines('Manifest.txt').map {|path| path.chomp}.sort
  end

  it 'lists every current file' do
    (@current_files - @manifest).should == []
  end
  it 'lists no extra files' do
    (@manifest - @current_files).should == []
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
reek-1.3.1 spec/gem/manifest_spec.rb
reek-1.3 spec/gem/manifest_spec.rb
reek-1.2.13 spec/gem/manifest_spec.rb
reek-1.2.12 spec/gem/manifest_spec.rb
reek-1.2.11 spec/gem/manifest_spec.rb
reek-1.2.10 spec/gem/manifest_spec.rb
reek-1.2.9 spec/gem/manifest_spec.rb