lib/rubocop-rspec.rb in rubocop-rspec-2.31.0 vs lib/rubocop-rspec.rb in rubocop-rspec-3.0.0.pre

- old
+ new

@@ -2,23 +2,18 @@ require 'pathname' require 'yaml' require 'rubocop' -require 'rubocop-capybara' -require 'rubocop-factory_bot' require_relative 'rubocop/rspec' require_relative 'rubocop/rspec/inject' -require_relative 'rubocop/rspec/language/node_pattern' +require_relative 'rubocop/rspec/language' require_relative 'rubocop/rspec/node' require_relative 'rubocop/rspec/version' require_relative 'rubocop/rspec/wording' -# Dependent on `RuboCop::RSpec::Language::NodePattern`. -require_relative 'rubocop/rspec/language' - require_relative 'rubocop/cop/rspec/mixin/file_help' require_relative 'rubocop/cop/rspec/mixin/final_end_location' require_relative 'rubocop/cop/rspec/mixin/inside_example_group' require_relative 'rubocop/cop/rspec/mixin/location_help' require_relative 'rubocop/cop/rspec/mixin/metadata' @@ -37,13 +32,10 @@ require_relative 'rubocop/rspec/corrector/move_node' require_relative 'rubocop/rspec/example' require_relative 'rubocop/rspec/example_group' require_relative 'rubocop/rspec/hook' -# need after `require 'rubocop/cop/rspec/base'`` -require 'rubocop-rspec_rails' - RuboCop::RSpec::Inject.defaults! require_relative 'rubocop/cop/rspec_cops' # We have to register our autocorrect incompatibilities in RuboCop's cops @@ -52,17 +44,9 @@ RuboCop::Cop::Layout::ExtraSpacing.singleton_class.prepend( Module.new do def autocorrect_incompatible_with super.push(RuboCop::Cop::RSpec::AlignLeftLetBrace) .push(RuboCop::Cop::RSpec::AlignRightLetBrace) - end - end -) - -RuboCop::Cop::Style::TrailingCommaInArguments.singleton_class.prepend( - Module.new do - def autocorrect_incompatible_with - super.push(RuboCop::Cop::RSpec::Capybara::CurrentPathExpectation) end end ) RuboCop::AST::Node.include(RuboCop::RSpec::Node)