Sha256: bddbcbd623844165462e8987bafb3bdc372ede20cfff559e39ab720cc6dd3b28

Contents?: true

Size: 461 Bytes

Versions: 10

Compression:

Stored size: 461 Bytes

Contents

require 'helper'

class TestLicensee < Minitest::Test
  should "know the licenses" do
    assert_equal Array, Licensee.licenses.class
    assert_equal 16, Licensee.licenses.size
    assert_equal Licensee::License, Licensee.licenses.first.class
  end

  should "detect a project's license" do
    assert_equal "mit", Licensee.license(fixture_path("licenses.git")).key
  end

  should "diff a license" do
    Licensee.diff(fixture_path("licenses.git"))
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
licensee-4.7.4 test/test_licensee.rb
licensee-4.7.3 test/test_licensee.rb
licensee-4.7.2 test/test_licensee.rb
licensee-4.7.1 test/test_licensee.rb
licensee-4.7.0 test/test_licensee.rb
licensee-4.6.0 test/test_licensee.rb
licensee-4.5.0 test/test_licensee.rb
licensee-4.4.2 test/test_licensee.rb
licensee-4.4.1 test/test_licensee.rb
licensee-4.4.0 test/test_licensee.rb