Class Index [+]

Quicksearch

RSpec::Core::FilterManager::BackwardCompatibility

Public Instance Methods

_warn_deprecated_key(key, updates) click to toggle source

Emits a deprecation warning for keys that will not be supported in the future.

     # File lib/rspec/core/filter_manager.rb, line 109
109:         def _warn_deprecated_key(key, updates)
110:           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.")
111:           @exclusions[key] = updates.delete(key)
112:         end
_warn_deprecated_keys(updates) click to toggle source

Supports a use case that probably doesn’t exist: overriding the if/unless procs.

     # File lib/rspec/core/filter_manager.rb, line 102
102:         def _warn_deprecated_keys(updates)
103:           _warn_deprecated_key(:unless, updates) if updates.has_key?(:unless)
104:           _warn_deprecated_key(:if, updates)     if updates.has_key?(:if)
105:         end
merge(orig, opposite, *updates) click to toggle source
    # File lib/rspec/core/filter_manager.rb, line 90
90:         def merge(orig, opposite, *updates)
91:           _warn_deprecated_keys(updates.last)
92:           super
93:         end
reverse_merge(orig, opposite, *updates) click to toggle source
    # File lib/rspec/core/filter_manager.rb, line 95
95:         def reverse_merge(orig, opposite, *updates)
96:           _warn_deprecated_keys(updates.last)
97:           super
98:         end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.