Sha256: b020f7ad01a14339353cdf253f485b0907bb64acf8d2c1900fb4ef02925be16c
Contents?: true
Size: 831 Bytes
Versions: 1
Compression:
Stored size: 831 Bytes
Contents
require 'helper' class TestLicenseeLicenses < Minitest::Test should "know license names" do assert_equal Array, Licensee::Licenses.send(:keys).class assert_equal 15, Licensee::Licenses.send(:keys).size end should "load the licenses" do assert_equal Array, Licensee::Licenses.list.class assert_equal 15, 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 should "sort the licenses" do assert_equal "apache-2.0", Licensee::Licenses.sorted_list.first.key assert_equal "bsd-2-clause", Licensee::Licenses.sorted_list.last.key end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
licensee-4.0.1 | test/test_licensee_licenses.rb |