lib/rubocop/cop/rspec/it_behaves_like.rb in rubocop-rspec-1.20.1 vs lib/rubocop/cop/rspec/it_behaves_like.rb in rubocop-rspec-1.21.0

- old
+ new

@@ -19,12 +19,12 @@ # # good # it_should_behave_like 'a foo' class ItBehavesLike < Cop include ConfigurableEnforcedStyle - MSG = 'Prefer `%s` over `%s` when including examples in '\ - 'a nested context.'.freeze + MSG = 'Prefer `%<replacement>s` over `%<original>s` when including '\ + 'examples in a nested context.'.freeze def_node_matcher :example_inclusion_offense, '(send _ % ...)' def on_send(node) example_inclusion_offense(node, alternative_style) do @@ -37,10 +37,10 @@ end private def message(_node) - format(MSG, style, alternative_style) + format(MSG, replacement: style, original: alternative_style) end end end end end