From 056bdf058005260b990db1986030d641699e2036 Mon Sep 17 00:00:00 2001 From: Mike Linksvayer Date: Fri, 12 Feb 2016 16:00:12 -0800 Subject: [PATCH] fix style found by rubocop --- spec/license_category_spec.rb | 1 - spec/license_meta_spec.rb | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/spec/license_category_spec.rb b/spec/license_category_spec.rb index 878506f..f66ec0e 100644 --- a/spec/license_category_spec.rb +++ b/spec/license_category_spec.rb @@ -15,7 +15,6 @@ describe 'license categories' do expected = family_licenses.count - 1 expect(variants.count).to eql(expected) end - end end end diff --git a/spec/license_meta_spec.rb b/spec/license_meta_spec.rb index e26fb03..d7bd689 100644 --- a/spec/license_meta_spec.rb +++ b/spec/license_meta_spec.rb @@ -19,12 +19,12 @@ describe 'license meta' do if license['family'] it 'should contain the required license variant fields' do - missing = ['family'] - license.keys + missing = %w(family) - license.keys expect(missing).to be_empty end else 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 end end