lib/rubocop/rspec/config_formatter.rb in rubocop-rspec-1.22.2 vs lib/rubocop/rspec/config_formatter.rb in rubocop-rspec-1.23.0
- old
+ new
@@ -2,10 +2,10 @@
module RuboCop
module RSpec
# Builds a YAML config file from two config hashes
class ConfigFormatter
- NAMESPACES = /^(#{Regexp.union('RSpec', 'Capybara', 'FactoryBot')})/
+ NAMESPACES = /^(RSpec|Capybara|FactoryBot|Rails)/
STYLE_GUIDE_BASE_URL = 'http://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/'.freeze
def initialize(config, descriptions)
@config = config
@descriptions = descriptions