Class: RSpec::CoverIt::ExampleGroupCompletenessChecker

Inherits:
Object
  • Object
show all
Defined in:
lib/rspec/cover_it/example_group_completeness_checker.rb

Instance Method Summary collapse

Constructor Details

#initialize(example_group) ⇒ ExampleGroupCompletenessChecker

This class uses some bits of the RSpec::Core::ExampleGroup api that are not documented, and are marked ‘@private` using YARD notation. But I found no other reasonable way to answer this question, so I’ve isolated my intrusion into this class - hopefully, there will be a more appropriate way to determine this information in the future; I’ve begun that conversation here: github.com/rspec/rspec-core/issues/3037



13
14
15
# File 'lib/rspec/cover_it/example_group_completeness_checker.rb', line 13

def initialize(example_group)
  @example_group = example_group
end

Instance Method Details

#running_all_examples?Boolean

Returns:

  • (Boolean)


17
18
19
# File 'lib/rspec/cover_it/example_group_completeness_checker.rb', line 17

def running_all_examples?
  all_examples == filtered_examples
end