Class: RuboCop::Cop::RSpecGuide::CharacteristicsAndContexts Deprecated

Inherits:
MinimumBehavioralCoverage show all
Defined in:
lib/rubocop/cop/rspec_guide/characteristics_and_contexts.rb

Overview

Deprecated.

Use MinimumBehavioralCoverage instead. This cop has been renamed to better reflect its purpose.

Checks that describe blocks test at least 2 behavioral variations.

This cop is deprecated and will be removed in a future release. Please use RSpecGuide/MinimumBehavioralCoverage instead.

Constant Summary collapse

MSG =

Override to provide deprecation warning with the old cop name

"Describe block should test at least 2 behavioral variations: " \
"either use 2+ sibling contexts (happy path + edge cases), " \
"or combine it-blocks for default behavior with context-blocks for edge cases. " \
"Use `# rubocop:disable RSpecGuide/CharacteristicsAndContexts` " \
"for simple cases (e.g., getters) with no edge cases."

Method Summary

Methods inherited from MinimumBehavioralCoverage

#context_only?, #on_block