Sha256: d9841e512883fcf136ea4fd90f2a0c1571539c446d05d159a6e828792ff97cd4

Contents?: true

Size: 408 Bytes

Versions: 7

Compression:

Stored size: 408 Bytes

Contents

require 'helper'

class TestLicenseeGemspecMatchers < Minitest::Test
  should 'detect its own license' do
    root = File.expand_path '../', File.dirname(__FILE__)
    project = Licensee::GitProject.new(root, detect_packages: true)
    matcher = Licensee::Matchers::Gemspec.new(project.package_file)
    assert_equal 'mit', matcher.send(:license_property)
    assert_equal 'mit', matcher.match.key
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
licensee-8.3.1 test/test_licensee_gemspec_matcher.rb
licensee-8.3.0 test/test_licensee_gemspec_matcher.rb
licensee-8.2.0 test/test_licensee_gemspec_matcher.rb
licensee-8.1.0 test/test_licensee_gemspec_matcher.rb
licensee-8.0.0 test/test_licensee_gemspec_matcher.rb
licensee-7.0.1 test/test_licensee_gemspec_matcher.rb
licensee-7.0.0 test/test_licensee_gemspec_matcher.rb