test/test_licensee.rb in licensee-4.9.0 vs test/test_licensee.rb in licensee-5.0.0b1

- old
+ new

@@ -13,15 +13,29 @@ should "diff a license" do Licensee.diff(fixture_path("licenses.git")) end - should "return the confidence threshold" do - assert_equal 90, Licensee.confidence_threshold + context "confidence threshold" do + should "return the confidence threshold" do + assert_equal 90, Licensee.confidence_threshold + end + + 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 - should "let the user override the confidence threshold" do - Licensee.confidence_threshold = 50 - assert_equal 50, Licensee.confidence_threshold - Licensee.confidence_threshold = 90 + 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