Sha256: 82ce26c2becd6c6a88f86eb2185d543377174d08512450a5a5d8ba2c833b5c32
Contents?: true
Size: 594 Bytes
Versions: 1
Compression:
Stored size: 594 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 end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
licensee-4.0.0 | test/test_licensee_licenses.rb |