1
0
mirror of https://github.com/github/choosealicense.com synced 2024-11-12 14:38:53 +01:00
This commit is contained in:
Mike Linksvayer 2017-10-08 20:38:56 -07:00
parent 286357a54c
commit 5134e27c79

View File

@ -5,7 +5,7 @@ require 'spec_helper'
describe 'license fillable fields' do
licenses.each do |license|
context "The #{license['title']} license" do
matches = license['content'].scan(/(\A|\W)\[([a-z]+)\]/).map {|row| row[1]}
matches = license['content'].scan(/(\A|\W)\[([a-z]+)\]/).map { |row| row[1] }
extra_fields = matches.flatten - (fields.map { |f| f['name'] })
it 'should only contain supported fillable fields' do
expect(extra_fields).to be_empty