Module: RSpec::Core::FilterManager::Describable

Defined in:
lib/rspec/core/filter_manager.rb

Constant Summary

PROC_HEX_NUMBER =
/0x[0-9a-f]+\s?@/
PROJECT_DIR =
File.expand_path('.')

Instance Method Summary (collapse)

Instance Method Details

- (Object) description



101
102
103
104
# File 'lib/rspec/core/filter_manager.rb', line 101

def description
  reject { |k, v| RSpec::Core::FilterManager.default_exclusions[k] == v }.inspect.
    gsub(PROC_HEX_NUMBER, '').gsub(PROJECT_DIR, '.').gsub(' (lambda)','').gsub('__is_lambda__=true','')
end

- (Boolean) empty_without_conditional_filters?

Returns:

  • (Boolean)


106
107
108
109
# File 'lib/rspec/core/filter_manager.rb', line 106

def empty_without_conditional_filters?
  RSpec.deprecate("(inclusion_filter | exclusion_filter)#empty_without_conditional_filters? is deprecated")
  rules_empty?
end