lib/rubocop/rspec/top_level_describe.rb in rubocop-rspec-1.2.2 vs lib/rubocop/rspec/top_level_describe.rb in rubocop-rspec-1.3.0
- old
+ new
@@ -7,11 +7,9 @@
def on_send(node)
return unless respond_to?(:on_top_level_describe)
return unless top_level_describe?(node)
_receiver, _method_name, *args = *node
- # Ignore non-string args (RSpec metadata)
- args = [args.first] + args[1..-1].select { |a| a.type == :str }
on_top_level_describe(node, args)
end
private