Sha256: f06dfcea33742e20f42dc53ae1a7e816331ec01b5271b7a9be4bda9b61b6ce4a
Contents?: true
Size: 438 Bytes
Versions: 26
Compression:
Stored size: 438 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).key end should "know the match confidence" do assert_equal 94, Licensee::GitMatcher.new(@mit).confidence end end
Version data entries
26 entries across 26 versions & 1 rubygems