lib/rubocop/cop/rspec/verified_doubles.rb in rubocop-rspec-1.3.1 vs lib/rubocop/cop/rspec/verified_doubles.rb in rubocop-rspec-1.4.0
- old
+ new
@@ -1,6 +1,7 @@
# encoding: utf-8
+# frozen_string_literal: true
module RuboCop
module Cop
module RSpec
# Prefer using verifying doubles over normal doubles.
@@ -15,10 +16,10 @@
# # good
# it '...' do
# widget = instance_double("Widget")
# end
class VerifiedDoubles < Cop
- MSG = 'Prefer using verifying doubles over normal doubles.'
+ MSG = 'Prefer using verifying doubles over normal doubles.'.freeze
def on_send(node)
_receiver, method_name, *_args = *node
return unless method_name == :double
add_offense(node,