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

Version Path
licensee-4.9.0 test/test_licensee_git_matcher.rb
licensee-4.8.0 test/test_licensee_git_matcher.rb
licensee-4.7.4 test/test_licensee_git_matcher.rb
licensee-4.7.3 test/test_licensee_git_matcher.rb
licensee-4.7.2 test/test_licensee_git_matcher.rb
licensee-4.7.1 test/test_licensee_git_matcher.rb
licensee-4.7.0 test/test_licensee_git_matcher.rb
licensee-4.6.0 test/test_licensee_git_matcher.rb
licensee-4.5.0 test/test_licensee_git_matcher.rb
licensee-4.4.2 test/test_licensee_git_matcher.rb
licensee-4.4.1 test/test_licensee_git_matcher.rb
licensee-4.4.0 test/test_licensee_git_matcher.rb
licensee-4.3.3 test/test_licensee_git_matcher.rb
licensee-4.3.2 test/test_licensee_git_matcher.rb
licensee-4.3.1 test/test_licensee_git_matcher.rb
licensee-4.3.0 test/test_licensee_git_matcher.rb
licensee-4.2.4 test/test_licensee_git_matcher.rb
licensee-4.2.3 test/test_licensee_git_matcher.rb
licensee-4.2.2 test/test_licensee_git_matcher.rb
licensee-4.2.1 test/test_licensee_git_matcher.rb