Class: RuboCop::Cop::RSpecGuide::CharacteristicsAndContexts Deprecated
- Inherits:
-
MinimumBehavioralCoverage
- Object
- RuboCop::Cop::RSpec::Base
- MinimumBehavioralCoverage
- RuboCop::Cop::RSpecGuide::CharacteristicsAndContexts
- 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."