Class: RuboCop::Cop::RSpecRails::HttpStatus::SymbolicStyleChecker
- Inherits:
-
StyleCheckerBase
- Object
- StyleCheckerBase
- RuboCop::Cop::RSpecRails::HttpStatus::SymbolicStyleChecker
- Defined in:
- lib/rubocop/cop/rspec_rails/http_status.rb
Overview
:nodoc:
Constant Summary
Constants inherited from StyleCheckerBase
RuboCop::Cop::RSpecRails::HttpStatus::StyleCheckerBase::ALLOWED_STATUSES, RuboCop::Cop::RSpecRails::HttpStatus::StyleCheckerBase::MSG
Instance Attribute Summary
Attributes inherited from StyleCheckerBase
Instance Method Summary collapse
Methods inherited from StyleCheckerBase
#allowed_symbol?, #current, #custom_http_status_code?, #initialize, #message, #offense_range
Constructor Details
This class inherits a constructor from RuboCop::Cop::RSpecRails::HttpStatus::StyleCheckerBase
Instance Method Details
#offensive? ⇒ Boolean
135 136 137 |
# File 'lib/rubocop/cop/rspec_rails/http_status.rb', line 135 def offensive? !node.sym_type? && !custom_http_status_code? end |
#prefer ⇒ Object
139 140 141 |
# File 'lib/rubocop/cop/rspec_rails/http_status.rb', line 139 def prefer symbol.inspect end |