mirror of
https://github.com/github/choosealicense.com
synced 2024-12-22 12:50:24 +01:00
rubocop
This commit is contained in:
parent
d5c6d8d746
commit
71aace0808
@ -6,7 +6,7 @@ describe 'license fillable fields' do
|
|||||||
licenses.each do |license|
|
licenses.each do |license|
|
||||||
context "The #{license['title']} license" do
|
context "The #{license['title']} license" do
|
||||||
it 'should only contain supported fillable fields' do
|
it 'should only contain supported fillable fields' do
|
||||||
matches = license['content'][0,1000].scan(/\[([a-z]+)\]/)
|
matches = license['content'][0, 1000].scan(/\[([a-z]+)\]/)
|
||||||
extra_fields = matches.flatten - (fields.map { |f| f['name'] })
|
extra_fields = matches.flatten - (fields.map { |f| f['name'] })
|
||||||
expect(extra_fields).to be_empty
|
expect(extra_fields).to be_empty
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user