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) 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) end end end