Class: RuboCop::Cop::RSpecParity::SufficientContexts::ParsedSpec

Inherits:
Struct
  • Object
show all
Defined in:
lib/rubocop/cop/rspec_parity/sufficient_contexts.rb

Overview

Tallies extracted from a spec’s text for a single method describe block.

Instance Attribute Summary collapse

Instance Attribute Details

#context_countObject

Returns the value of attribute context_count

Returns:

  • (Object)

    the current value of context_count



64
65
66
# File 'lib/rubocop/cop/rspec_parity/sufficient_contexts.rb', line 64

def context_count
  @context_count
end

#example_countObject

Returns the value of attribute example_count

Returns:

  • (Object)

    the current value of example_count



64
65
66
# File 'lib/rubocop/cop/rspec_parity/sufficient_contexts.rb', line 64

def example_count
  @example_count
end

#has_direct_examplesObject

Returns the value of attribute has_direct_examples

Returns:

  • (Object)

    the current value of has_direct_examples



64
65
66
# File 'lib/rubocop/cop/rspec_parity/sufficient_contexts.rb', line 64

def has_direct_examples
  @has_direct_examples
end

#has_examplesObject

Returns the value of attribute has_examples

Returns:

  • (Object)

    the current value of has_examples



64
65
66
# File 'lib/rubocop/cop/rspec_parity/sufficient_contexts.rb', line 64

def has_examples
  @has_examples
end