Sha256: c1b5950d9b8a8b5fdd94330db4d216e6c5cc951bf70d7b32f5bb2879f58017d0

Contents?: true

Size: 493 Bytes

Versions: 2

Compression:

Stored size: 493 Bytes

Contents

require 'helper'

class TestLicenseePackageInfo < Minitest::Test
  context "license filename scoring" do
    EXPECTATIONS = {
      "licensee.gemspec" => 1.0,
      "package.json"     => 1.0,
      "bower.json"       => 0.75,
      "README.md"        => 0.0
    }

    EXPECTATIONS.each do |filename, expected|
      should "score a license named `#{filename}` as `#{expected}`" do
        assert_equal expected, Licensee::Project::PackageInfo.name_score(filename)
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
licensee-6.1.1 test/test_licensee_package_info.rb
licensee-6.1.0 test/test_licensee_package_info.rb