Sha256: 3d0a24b152d081cfb9cee0e7968ee245f032d80bc94f75a377e60d72cf2ab8e6
Contents?: true
Size: 446 Bytes
Versions: 4
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
4 entries across 4 versions & 1 rubygems