Sha256: eec6b9176b2321dc2ad3dc7d589d5579039aa5b3815b1fe961dff1d80a545b6b
Contents?: true
Size: 633 Bytes
Versions: 2
Compression:
Stored size: 633 Bytes
Contents
require 'helper' class TestLicenseeLicenses < Minitest::Test should "know license names" do assert_equal Array, Licensee::Licenses.keys.class assert_equal 19, Licensee::Licenses.keys.size end should "load the licenses" do assert_equal Array, Licensee::Licenses.list.class assert_equal 19, Licensee::Licenses.list.size assert_equal Licensee::License, Licensee::Licenses.list.first.class end should "find a license" do assert_equal "mit", Licensee::Licenses.find("mit").key assert_equal "mit", Licensee::Licenses.find("MIT").key assert_equal "mit", Licensee::Licenses["mit"].key end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
licensee-4.9.0 | test/test_licensee_licenses.rb |
licensee-4.8.0 | test/test_licensee_licenses.rb |