File: test_manifest.rb

package info (click to toggle)
ruby-adsf 1.5.2%2Bdfsg1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, trixie
  • size: 396 kB
  • sloc: ruby: 1,016; javascript: 976; makefile: 12
file content (20 lines) | stat: -rw-r--r-- 519 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# frozen_string_literal: true

require 'helper'

class Adsf::ManifestTest < Minitest::Test
  def test_has_correct_manifest
    manifest_lines =
      File.readlines('adsf.manifest').map(&:chomp).reject(&:empty?)

    gemspec = eval(File.read('adsf.gemspec'), binding, 'adsf.gemspec')

    gemspec_lines = gemspec.files

    missing_from_manifest = gemspec_lines - manifest_lines
    assert_empty missing_from_manifest

    extra_in_manifest = manifest_lines - gemspec_lines
    assert_empty extra_in_manifest
  end
end