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:
parent
c04ea11e17
commit
056bdf0580
@ -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
|
||||||
|
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user