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

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

Constant Summary collapse

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

Instance Method Summary collapse

Instance Method Details

#descriptionObject


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

#empty_without_conditional_filters?Boolean

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