test/test_licensee_vendor.rb in licensee-6.1.1 vs test/test_licensee_vendor.rb in licensee-7.0.0

- old
+ new

@@ -1,29 +1,32 @@ require 'helper' class TestLicenseeVendor < Minitest::Test + SKIP = %(wtfpl no-license).freeze - SKIP = %[wtfpl no-license] - Licensee::License.send(:license_files).shuffle.each do |license| should "detect the #{license} license" do verify_license_file(license) end - context "when modified" do + context 'when modified' do should "detect the #{license} license" do - verify_license_file(license, true) unless SKIP.include?(File.basename(license, ".txt")) + unless SKIP.include?(File.basename(license, '.txt')) + verify_license_file(license, true) + end end end - context "different line lengths" do + context 'different line lengths' do should "detect the #{license} license" do verify_license_file(license, false, 50) end - context "when modified" do + context 'when modified' do should "detect the #{license} license" do - verify_license_file(license, true, 50) unless SKIP.include?(File.basename(license, ".txt")) + unless SKIP.include?(File.basename(license, '.txt')) + verify_license_file(license, true, 50) + end end end end end end