1
0
mirror of https://github.com/github/choosealicense.com synced 2024-12-22 12:50:24 +01:00

fix style found by rubocop

This commit is contained in:
Mike Linksvayer 2016-02-12 16:00:12 -08:00
parent c04ea11e17
commit 056bdf0580
2 changed files with 2 additions and 3 deletions

View File

@ -15,7 +15,6 @@ describe 'license categories' do
expected = family_licenses.count - 1 expected = family_licenses.count - 1
expect(variants.count).to eql(expected) expect(variants.count).to eql(expected)
end end
end end
end end
end end

View File

@ -19,12 +19,12 @@ describe 'license meta' do
if license['family'] if license['family']
it 'should contain the required license variant fields' do it 'should contain the required license variant fields' do
missing = ['family'] - license.keys missing = %w(family) - license.keys
expect(missing).to be_empty expect(missing).to be_empty
end end
else else
it 'should not contain license family specific fields' do it 'should not contain license family specific fields' do
extra = ['variant', 'family'].select { |f| raw_fields.keys.include?(f) } extra = %w(variant family).select { |f| raw_fields.keys.include?(f) }
expect(extra).to be_empty expect(extra).to be_empty
end end
end end