Sha256: 2c168229e9bc66115cd0554bba426fe6ecdf6e58b22c5eca24a1052af0aeda6f
Contents?: true
Size: 620 Bytes
Versions: 9
Compression:
Stored size: 620 Bytes
Contents
require 'helper' class TestLicenseeProjectFile < Minitest::Test def setup @repo = Rugged::Repository.new(fixture_path('licenses.git')) ref = 'bcb552d06d9cf1cd4c048a6d3bf716849c2216cc' blob, = Rugged::Blob.to_buffer(@repo, ref) @file = Licensee::Project::LicenseFile.new(blob) @gpl = Licensee::License.find 'GPL-3.0' @mit = Licensee::License.find 'MIT' end should 'read the file' do assert @file.content =~ /MIT/ end should 'match the license' do assert_equal 'mit', @file.license.key end should 'calculate confidence' do assert_equal 100, @file.confidence end end
Version data entries
9 entries across 9 versions & 1 rubygems