Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test that only open licenses are included per CONTRIBUTING #345

Merged
merged 2 commits into from
Feb 9, 2016

Conversation

mlinksva
Copy link
Contributor

@mlinksva mlinksva commented Feb 8, 2016

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

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

context "minimum permissions" do
permissions = license["permitted"]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll be honest, I don't fully get it, but stylistically, for tests, this should be let(:permissions) { license["permitted"] }, similar to the id line, a few lines above. It's a Ruby/Rspec thing and has something to do with scopes or cleanup, IIRC.

@benbalter
Copy link
Contributor

Really good idea. Two minor style notes, not to be too pedantic, but 👍.

@benbalter benbalter mentioned this pull request Feb 8, 2016
mlinksva added a commit that referenced this pull request Feb 9, 2016
Test that only open licenses are included per CONTRIBUTING
@mlinksva mlinksva merged commit e7f2065 into gh-pages Feb 9, 2016
@mlinksva mlinksva deleted the open-licenses-test branch February 9, 2016 17:06
mlinksva added a commit that referenced this pull request Feb 28, 2016
should have been removed as part of
#345
correct that oversight
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

MIT and BSD also allow private use
2 participants