Sha256: 7677b4d089b32e2ee889c98e8d78c7bdf16d3ee6012d38822a2b20c75a2063e6

Contents?: true

Size: 461 Bytes

Versions: 14

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 15, 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

14 entries across 14 versions & 1 rubygems

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