module RSpec::Core::FilterManager::BackwardCompatibility
def _warn_deprecated_key(key, updates)
Emits a deprecation warning for keys that will not be supported in
def _warn_deprecated_key(key, updates) RSpec.deprecate("FilterManager#exclude(#{key.inspect} => #{updates[key].inspect})") @exclusions[key] = updates.delete(key) end
def _warn_deprecated_keys(updates)
Supports a use case that probably doesn't exist: overriding the
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
def merge(orig, opposite, *updates)
def merge(orig, opposite, *updates) _warn_deprecated_keys(updates.last) super end
def reverse_merge(orig, opposite, *updates)
def reverse_merge(orig, opposite, *updates) _warn_deprecated_keys(updates.last) super end