Skip to content

Commit

Permalink
Don't swallow RSpec metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
David Rodríguez committed Mar 13, 2015
1 parent 21d6b55 commit 549440c
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions lib/rubocop/rspec/top_level_describe.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ def on_send(node)
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
Expand Down

0 comments on commit 549440c

Please sign in to comment.