lib/rubocop/rspec/description_extractor.rb in rubocop-rspec-1.15.1 vs lib/rubocop/rspec/description_extractor.rb in rubocop-rspec-1.16.0
- old
+ new
@@ -17,11 +17,11 @@
attr_reader :code_objects
# Decorator of a YARD code object for working with documented rspec cops
class CodeObject
- COP_NAMESPACE = 'RuboCop::Cop::RSpec'.freeze
+ RSPEC_NAMESPACE = 'RuboCop::Cop::RSpec'.freeze
def initialize(yardoc)
@yardoc = yardoc
end
@@ -52,10 +52,10 @@
def class_documentation?
yardoc.type.equal?(:class)
end
def rspec_cop_namespace?
- documented_constant.start_with?(COP_NAMESPACE)
+ documented_constant.start_with?(RSPEC_NAMESPACE)
end
def documented_constant
yardoc.to_s
end