diff --git a/_data/rules.yml b/_data/rules.yml index d119911..2970878 100644 --- a/_data/rules.yml +++ b/_data/rules.yml @@ -42,9 +42,3 @@ forbidden: - description: Software is provided without warranty and the software author/license owner cannot be held liable for damages. label: Hold Liable tag: no-liability -- description: This software may not be modified. - label: Modification - tag: modifications -- description: You may not distribute this software. - label: Distribution - tag: distribution diff --git a/spec/license_spec.rb b/spec/license_spec.rb index 05ad835..3060ac4 100644 --- a/spec/license_spec.rb +++ b/spec/license_spec.rb @@ -24,6 +24,25 @@ describe 'licenses' do expect(approved_licenses).to include(id), 'See https://git.io/vzCTV.' end end + + context "minimum permissions" do + let(:permissions) { license["permitted"] } + it "should allow commercial use" do + expect(permissions).to include("commercial-use") + end + + it "should allow modification" do + expect(permissions).to include("modifications") + end + + it "should allow distribution" do + expect(permissions).to include("distribution") + end + + it "should allow private use" do + expect(permissions).to include("private-use") + end + end end end end