From f8ce42e169062e080a24ded5152a2e7d827519b6 Mon Sep 17 00:00:00 2001 From: Paul Chaignon Date: Mon, 26 Sep 2016 19:51:51 +0200 Subject: [PATCH] Recognize licenses in READMEs using Licensee Since v7.0.0 Licensee can detect license text in READMEs Using this, we might be able to rely solely on Licensee in the future --- test/test_grammars.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/test_grammars.rb b/test/test_grammars.rb index 1b878847..c4204327 100644 --- a/test/test_grammars.rb +++ b/test/test_grammars.rb @@ -141,7 +141,7 @@ class TestGrammars < Minitest::Test # Given the path to a submodule, return its SPDX-compliant license key def submodule_license(submodule) # Prefer Licensee to detect a submodule's license - project = Licensee::FSProject.new(submodule) + project = Licensee::FSProject.new(submodule, detect_readme: true) return project.license.key if project.license # We know a license file exists, but Licensee wasn't able to detect the license,