File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -69,6 +69,7 @@ The licenses on choosealicense.com are regularly imported to GitHub.com to be us
6969* ` project ` - The repository name
7070* ` description ` - The description of the repository
7171* ` year ` - The current year
72+ * ` project_url ` - The repository URL or other project website
7273
7374## License properties
7475
Original file line number Diff line number Diff line change 2121
2222- name : year
2323 description : The current year
24+
25+ - name : project_url
26+ description : The repository URL or other project website
Original file line number Diff line number Diff line change 1+ # frozen_string_literal: true
2+
3+ require 'spec_helper'
4+
5+ describe 'license fillable fields' do
6+ licenses . each do |license |
7+ context "The #{ license [ 'title' ] } license" do
8+ it 'should only contain supported fillable fields' do
9+ matches = license [ 'content' ] [ 1 , 1000 ] . scan ( /\s +\[ ([a-z_]+)\] / )
10+ extra_fields = matches . flatten - ( fields . map { |f | f [ 'name' ] } )
11+ expect ( extra_fields ) . to be_empty
12+ end
13+ end
14+ end
15+ end
You can’t perform that action at this time.
0 commit comments