module RSpec::Core::MetadataHashBuilder::WithConfigWarning
@private
Private Instance Methods
symbol_metadata_warning(symbols)
click to toggle source
# File lib/rspec/core/metadata_hash_builder.rb, line 40 def symbol_metadata_warning(symbols) <<-NOTICE ***************************************************************** WARNING: You have passed symbols (#{symbols.inspect}) as metadata arguments to a configuration option. In RSpec 3, these symbols will be treated as metadata keys with a value of `true`. To get this behavior now (and prevent this warning), you can set a configuration option: RSpec.configure do |c| c.treat_symbols_as_metadata_keys_with_true_values = true end Note that this config setting should go before your other config settings so that they can use symbols as metadata. ***************************************************************** NOTICE end