Sha256: 29571fd0e70de153498994a203d510b540ed7141e29a54b51f52727b3a9253b8
Contents?: true
Size: 633 Bytes
Versions: 12
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 15, Licensee::Licenses.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 end
Version data entries
12 entries across 12 versions & 1 rubygems