test/test_licensee.rb in licensee-5.0.0 vs test/test_licensee.rb in licensee-6.0.0b1
- old
+ new
@@ -2,11 +2,11 @@
class TestLicensee < Minitest::Test
should "know the licenses" do
assert_equal Array, Licensee.licenses.class
assert_equal 15, Licensee.licenses.size
- assert_equal 23, Licensee.licenses(:hidden => true).size
+ assert_equal 24, Licensee.licenses(:hidden => true).size
assert_equal Licensee::License, Licensee.licenses.first.class
end
should "detect a project's license" do
assert_equal "mit", Licensee.license(fixture_path("licenses.git")).key
@@ -19,20 +19,8 @@
should "let the user override the confidence threshold" do
Licensee.confidence_threshold = 50
assert_equal 50, Licensee.confidence_threshold
Licensee.confidence_threshold = 90
- end
- end
-
- context "npm-bower matcher" do
- should "be disabled by default" do
- refute Licensee.matchers.include? Licensee::NpmBowerMatcher
- end
-
- should "be enable-able" do
- Licensee.package_manager_files = true
- assert Licensee.matchers.include? Licensee::NpmBowerMatcher
- Licensee.package_manager_files = false
end
end
end