1
0
mirror of https://github.com/github/choosealicense.com synced 2024-12-22 04:40:09 +01:00

Test that only open licenses are included per

https://github.com/github/choosealicense.com/blob/gh-pages/CONTRIBUTING.md#adding-a-license

- check that all licenses have minimum permissions
- remove non-open (and unused) forbiddens
- closes #1 with confidence
This commit is contained in:
Mike Linksvayer 2016-02-08 10:25:06 -08:00
parent 659c2a0d47
commit ade0beec17
2 changed files with 16 additions and 6 deletions

View File

@ -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

View File

@ -27,6 +27,22 @@ describe "licenses" do
expect(approved_licenses).to include(id), "See https://git.io/vzCTV."
end
end
context "minimum permissions" do
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