Sha256: e068d8c06a4e9293502b3ef0d0f0a3a49c8fcdb43efe857430d21d974e93c4ce

Contents?: true

Size: 868 Bytes

Versions: 9

Compression:

Stored size: 868 Bytes

Contents

require 'helper'

class TestLicenseeVendor < Minitest::Test
  SKIP = %(wtfpl no-license).freeze

  Licensee::License.send(:license_files).shuffle.each do |license|
    should "detect the #{license} license" do
      verify_license_file(license)
    end

    context 'when modified' do
      should "detect the #{license} license" do
        unless SKIP.include?(File.basename(license, '.txt'))
          verify_license_file(license, true)
        end
      end
    end

    context 'different line lengths' do
      should "detect the #{license} license" do
        verify_license_file(license, false, 50)
      end

      context 'when modified' do
        should "detect the #{license} license" do
          unless SKIP.include?(File.basename(license, '.txt'))
            verify_license_file(license, true, 50)
          end
        end
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
licensee-8.5.0 test/test_licensee_vendor.rb
licensee-8.4.0 test/test_licensee_vendor.rb
licensee-8.3.1 test/test_licensee_vendor.rb
licensee-8.3.0 test/test_licensee_vendor.rb
licensee-8.2.0 test/test_licensee_vendor.rb
licensee-8.1.0 test/test_licensee_vendor.rb
licensee-8.0.0 test/test_licensee_vendor.rb
licensee-7.0.1 test/test_licensee_vendor.rb
licensee-7.0.0 test/test_licensee_vendor.rb