Sha256: e2378e068e0dca036310106c7868891267dd2c059eaaeecfc255fddad05da015

Contents?: true

Size: 449 Bytes

Versions: 4

Compression:

Stored size: 449 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

Version Path
licensee-5.0.0 test/test_licensee_git_matcher.rb
licensee-5.0.0b7 test/test_licensee_git_matcher.rb
licensee-5.0.0b6 test/test_licensee_git_matcher.rb
licensee-5.0.0b5 test/test_licensee_git_matcher.rb