spec/project/default_config_spec.rb in rubocop-rspec-1.19.0 vs spec/project/default_config_spec.rb in rubocop-rspec-1.20.0

- old
+ new

@@ -5,13 +5,13 @@ let(:cop_names) do namespaces = { 'rspec' => 'RSpec', 'capybara' => 'Capybara', - 'factory_girl' => 'FactoryGirl' + 'factory_bot' => 'FactoryBot' } glob = SpecHelper::ROOT.join('lib', 'rubocop', 'cop', - 'rspec', '{capybara/,,factory_girl/}*.rb') + 'rspec', '{capybara/,,factory_bot/}*.rb') cop_names = Pathname.glob(glob).map do |file| file_name = file.basename('.rb').to_s cop_name = file_name.gsub(/(^|_)(.)/) { Regexp.last_match(2).upcase } namespace = namespaces[file.dirname.basename.to_s]