test/test_licensee.rb in licensee-4.7.4 vs test/test_licensee.rb in licensee-4.8.0

- old
+ new

@@ -1,17 +1,27 @@ require 'helper' class TestLicensee < Minitest::Test should "know the licenses" do assert_equal Array, Licensee.licenses.class - assert_equal 16, Licensee.licenses.size + assert_equal 19, Licensee.licenses.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 end should "diff a license" do Licensee.diff(fixture_path("licenses.git")) + end + + 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