Sha256: 771415f28b76ca14c67cc18e63fc105285077b5abd2fb7256da2a33f27622409

Contents?: true

Size: 459 Bytes

Versions: 1

Compression:

Stored size: 459 Bytes

Contents

require 'helper'

class TestLicenseeExactMatcher < Minitest::Test

  def setup
    text = File.open(Licensee::Licenses.find("mit").path).read.split("---").last
    blob = FakeBlob.new(text)
    @mit = Licensee::LicenseFile.new(blob)
  end

  should "match the license" do
    assert_equal "mit", Licensee::ExactMatcher.match(@mit).name
  end

  should "know the match confidence" do
    assert_equal 100, Licensee::ExactMatcher.new(@mit).confidence
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
licensee-3.0.0 test/test_licensee_exact_matcher.rb