spec/project/default_config_spec.rb in rubocop-rspec-1.15.0 vs spec/project/default_config_spec.rb in rubocop-rspec-1.15.1
- old
+ new
@@ -12,14 +12,14 @@
cop_name = file_name.gsub(/(^|_)(.)/) { Regexp.last_match(2).upcase }
"RSpec/#{cop_name}"
end
- cop_names - %w(RSpec/Cop)
+ cop_names - %w[RSpec/Cop]
end
let(:config_keys) do
- cop_names + %w(AllCops)
+ cop_names + %w[AllCops]
end
def cop_configuration(config_key)
cop_names.map do |cop_name|
cop_config = default_config[cop_name]