lib/rubocop/cop/rspec/capybara/current_path_expectation.rb in rubocop-rspec-2.9.0 vs lib/rubocop/cop/rspec/capybara/current_path_expectation.rb in rubocop-rspec-2.10.0
- old
+ new
@@ -50,9 +50,13 @@
(send
#expectation_set_on_current_path $#Runners.all
$(send nil? :match (str $_)))
PATTERN
+ def self.autocorrect_incompatible_with
+ [Style::TrailingCommaInArguments]
+ end
+
def on_send(node)
expectation_set_on_current_path(node) do
add_offense(node.loc.selector) do |corrector|
next unless node.chained?