Sha256: 91fcb27c4b3cd34739693a8df344679d1c601e0d05351594c85376efdcb43f0f

Contents?: true

Size: 980 Bytes

Versions: 7

Compression:

Stored size: 980 Bytes

Contents

require 'helper'

class TestLicenseeVendor < Minitest::Test
  should "detect each vendored license" do
    licenses = Dir["#{Licensee::Licenses.base}/*"].shuffle
    licenses.each do |license|
      verify_license_file(license)
    end
  end

  should "detect each vendored license when modified" do
    licenses = Dir["#{Licensee::Licenses.base}/*"].shuffle
    licenses.each do |license|
      verify_license_file(license, true) unless license =~ /no-license\.txt$/
    end
  end

  should "detect each vendored license with different line lengths" do
    licenses = Dir["#{Licensee::Licenses.base}/*"].shuffle
    licenses.each do |license|
      verify_license_file(license, false, 50)
    end
  end

  should "detect each vendored license with different line lengths when modified" do
    licenses = Dir["#{Licensee::Licenses.base}/*"].shuffle
    licenses.each do |license|
      verify_license_file(license, true, 50) unless license =~ /no-license\.txt$/
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
licensee-4.7.1 test/test_licensee_vendor.rb
licensee-4.7.0 test/test_licensee_vendor.rb
licensee-4.6.0 test/test_licensee_vendor.rb
licensee-4.5.0 test/test_licensee_vendor.rb
licensee-4.4.2 test/test_licensee_vendor.rb
licensee-4.4.1 test/test_licensee_vendor.rb
licensee-4.4.0 test/test_licensee_vendor.rb