class RuboCop::Cop::RSpec::MetadataStyle
def on_metadata(symbols, hash)
def on_metadata(symbols, hash) # RSpec example groups accept two string arguments. In such a case, # the rspec_metadata matcher will interpret the second string # argument as a metadata symbol. symbols.shift if symbols.first&.str_type? symbols.each do |symbol| on_metadata_symbol(symbol) end return unless hash hash.pairs.each do |pair| on_metadata_pair(pair) end end