Module: RSpec::Core::MetadataHashBuilder::Common

Included in:
WithConfigWarning, WithDeprecationWarning
Defined in:
lib/rspec/core/metadata_hash_builder.rb

Instance Method Summary collapse

Instance Method Details

#build_metadata_hash_from(args) ⇒ Object



5
6
7
8
9
10
11
12
13
14
15
# File 'lib/rspec/core/metadata_hash_builder.rb', line 5

def (args)
   = args.last.is_a?(Hash) ? args.pop : {}

  if RSpec.configuration.
    add_symbols_to_hash(, args)
  else
    warn_about_symbol_usage(args)
  end

  
end