Sha256: 1297ea73e28931b67032f10dd0966fa0759bea2893b2873fd1429620b6abf4a4
Contents?: true
Size: 439 Bytes
Versions: 1
Compression:
Stored size: 439 Bytes
Contents
require 'helper' class TestLicenseeGitMatcher < Minitest::Test def setup text = license_from_path( Licensee::Licenses.find("mit").path ) blob = FakeBlob.new(text) @mit = Licensee::LicenseFile.new(blob) end should "match the license" do assert_equal "mit", Licensee::GitMatcher.match(@mit).name end should "know the match confidence" do assert_equal 94, Licensee::GitMatcher.new(@mit).confidence end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
licensee-3.0.0 | test/test_licensee_git_matcher.rb |