Emits a deprecation warning for keys that will not be supported in the future.
# File lib/rspec/core/filter_manager.rb, line 109 def _warn_deprecated_key(key, updates) RSpec.warn_deprecation("\nDEPRECATION NOTICE: FilterManager#exclude(#{key.inspect} => #{updates[key].inspect}) is deprecated with no replacement, and will be removed from rspec-3.0.") @exclusions[key] = updates.delete(key) end
Supports a use case that probably doesn't exist: overriding the if/unless procs.
# File lib/rspec/core/filter_manager.rb, line 102 def _warn_deprecated_keys(updates) _warn_deprecated_key(:unless, updates) if updates.has_key?(:unless) _warn_deprecated_key(:if, updates) if updates.has_key?(:if) end
# File lib/rspec/core/filter_manager.rb, line 90 def merge(orig, opposite, *updates) _warn_deprecated_keys(updates.last) super end
# File lib/rspec/core/filter_manager.rb, line 95 def reverse_merge(orig, opposite, *updates) _warn_deprecated_keys(updates.last) super end