mirror of
https://github.com/github/choosealicense.com
synced 2024-12-22 12:50:24 +01:00
Merge pull request #345 from github/open-licenses-test
Test that only open licenses are included per CONTRIBUTING
This commit is contained in:
commit
e7f20659dd
@ -42,9 +42,3 @@ forbidden:
|
|||||||
- description: Software is provided without warranty and the software author/license owner cannot be held liable for damages.
|
- description: Software is provided without warranty and the software author/license owner cannot be held liable for damages.
|
||||||
label: Hold Liable
|
label: Hold Liable
|
||||||
tag: no-liability
|
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
|
|
||||||
|
@ -24,6 +24,25 @@ describe 'licenses' do
|
|||||||
expect(approved_licenses).to include(id), 'See https://git.io/vzCTV.'
|
expect(approved_licenses).to include(id), 'See https://git.io/vzCTV.'
|
||||||
end
|
end
|
||||||
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
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user