diff --git a/spec/license_fields_spec.rb b/spec/license_fields_spec.rb index b89b9e7..f26f19e 100644 --- a/spec/license_fields_spec.rb +++ b/spec/license_fields_spec.rb @@ -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