lib/rubocop/cop/rspec/described_class.rb in rubocop-rspec-1.12.0 vs lib/rubocop/cop/rspec/described_class.rb in rubocop-rspec-1.13.0
- old
+ new
@@ -32,13 +32,13 @@
# subject { MyClass.do_something }
# end
#
class DescribedClass < Cop
include RuboCop::RSpec::TopLevelDescribe
- include RuboCop::Cop::ConfigurableEnforcedStyle
+ include ConfigurableEnforcedStyle
DESCRIBED_CLASS = 'described_class'.freeze
- MSG = 'Use `%s` instead of `%s`'.freeze
+ MSG = 'Use `%s` instead of `%s`.'.freeze
def_node_matcher :common_instance_exec_closure?, <<-PATTERN
(block (send (const nil {:Class :Module}) :new ...) ...)
PATTERN