Sha256: bc630f7cec4e8a8ee0757797f32570049d87c6f5e36e38cc0c180ab559841e34
Contents?: true
Size: 448 Bytes
Versions: 4
Compression:
Stored size: 448 Bytes
Contents
require 'helper' class TestLicenseeGitMatcher < Minitest::Test def setup text = license_from_path( Licensee::License.find("mit").path ) blob = FakeBlob.new(text) @mit = Licensee::ProjectFile.new(blob, "LICENSE") 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
4 entries across 4 versions & 1 rubygems