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

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

Constant Summary

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

Instance Method Summary (collapse)

Instance Method Details

- (Object) description



80
81
82
# File 'lib/rspec/core/filter_manager.rb', line 80

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

- (Boolean) empty_without_conditional_filters?

Returns:

  • (Boolean)


84
85
86
# File 'lib/rspec/core/filter_manager.rb', line 84

def empty_without_conditional_filters?
  reject { |k, v| RSpec::Core::FilterManager::DEFAULT_EXCLUSIONS[k] == v }.empty?
end