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

Version Path
licensee-4.3.3 test/test_licensee_licenses.rb
licensee-4.3.2 test/test_licensee_licenses.rb
licensee-4.3.1 test/test_licensee_licenses.rb
licensee-4.3.0 test/test_licensee_licenses.rb
licensee-4.2.4 test/test_licensee_licenses.rb
licensee-4.2.3 test/test_licensee_licenses.rb
licensee-4.2.2 test/test_licensee_licenses.rb
licensee-4.2.1 test/test_licensee_licenses.rb
licensee-4.2.0 test/test_licensee_licenses.rb
licensee-4.1.2 test/test_licensee_licenses.rb
licensee-4.1.1 test/test_licensee_licenses.rb
licensee-4.1.0 test/test_licensee_licenses.rb