Sha256: ea1f2a6df344ac25687b293fb665413e63be6b78af5f646297c2df381d92a8c4

Contents?: true

Size: 446 Bytes

Versions: 3

Compression:

Stored size: 446 Bytes

Contents

require 'helper'

class TestLicenseeExactMatchers < Minitest::Test
  def setup
    text = File.open(Licensee::License.find('mit').path).read.split('---').last
    @mit = Licensee::Project::LicenseFile.new(text)
  end

  should 'match the license' do
    assert_equal 'mit', Licensee::Matchers::Exact.new(@mit).match.key
  end

  should 'know the match confidence' do
    assert_equal 100, Licensee::Matchers::Exact.new(@mit).confidence
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
licensee-8.0.0 test/test_licensee_exact_matcher.rb
licensee-7.0.1 test/test_licensee_exact_matcher.rb
licensee-7.0.0 test/test_licensee_exact_matcher.rb