Sha256: 7f92c4f9ff1bcf1d9236a317816d9c2140420c96b6061a23d24f5980db548a1b

Contents?: true

Size: 504 Bytes

Versions: 8

Compression:

Stored size: 504 Bytes

Contents

require 'helper'

class TestLicenseeGemspecMatcher < Minitest::Test
  def setup
    Licensee.package_manager_files = true
  end

  def teardown
    Licensee.package_manager_files = false
  end

  should "detect its own license" do
    root = File.expand_path "../", File.dirname(__FILE__)
    project = Licensee::Project.new(root)
    matcher = Licensee::GemspecMatcher.new(project.package_file)
    assert_equal "mit", matcher.send(:license_property)
    assert_equal "mit", matcher.match.key
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
licensee-5.0.0 test/test_licensee_gemspec_matcher.rb
licensee-5.0.0b7 test/test_licensee_gemspec_matcher.rb
licensee-5.0.0b6 test/test_licensee_gemspec_matcher.rb
licensee-5.0.0b5 test/test_licensee_gemspec_matcher.rb
licensee-5.0.0b4 test/test_licensee_gemspec_matcher.rb
licensee-5.0.0b3 test/test_licensee_gemspec_matcher.rb
licensee-5.0.0b2 test/test_licensee_gemspec_matcher.rb
licensee-5.0.0b1 test/test_licensee_gemspec_matcher.rb