mirror of
https://github.com/github/choosealicense.com
synced 2024-12-22 12:50:24 +01:00
rubocop
This commit is contained in:
parent
286357a54c
commit
5134e27c79
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user