spec/project/default_config_spec.rb in rubocop-rspec-1.16.0 vs spec/project/default_config_spec.rb in rubocop-rspec-1.17.0
- old
+ new
@@ -4,13 +4,14 @@
end
let(:cop_names) do
namespaces = {
'rspec' => 'RSpec',
+ 'capybara' => 'Capybara',
'factory_girl' => 'FactoryGirl'
}
glob = SpecHelper::ROOT.join('lib', 'rubocop', 'cop',
- 'rspec', '{,factory_girl/}*.rb')
+ 'rspec', '{capybara/,,factory_girl/}*.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]