lib/rubocop/cop/rspec/example_without_description.rb in rubocop-rspec-1.24.0 vs lib/rubocop/cop/rspec/example_without_description.rb in rubocop-rspec-1.25.0
- old
+ new
@@ -70,11 +70,10 @@
end
private
def check_example_without_description(node)
- _send, _method, arg = *node
- return unless arg.nil?
+ return if node.arguments?
return unless disallow_empty_description?(node)
add_offense(node, message: MSG_ADD_DESCRIPTION)
end