From a39b57ba2232570a344f843c95c2f4b6577ea2a9 Mon Sep 17 00:00:00 2001 From: Franz Liedke Date: Tue, 17 Oct 2023 20:51:30 +0200 Subject: [PATCH] Fix typo in method name --- lib/rubocop/cop/rspec/mixin/metadata.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/rubocop/cop/rspec/mixin/metadata.rb b/lib/rubocop/cop/rspec/mixin/metadata.rb index bc09a7358..b5dd448c1 100644 --- a/lib/rubocop/cop/rspec/mixin/metadata.rb +++ b/lib/rubocop/cop/rspec/mixin/metadata.rb @@ -30,12 +30,12 @@ module Metadata def on_block(node) rspec_configure(node) do |block_var| metadata_in_block(node, block_var) do |metadata_arguments| - on_matadata_arguments(metadata_arguments) + on_metadata_arguments(metadata_arguments) end end rspec_metadata(node) do |metadata_arguments| - on_matadata_arguments(metadata_arguments) + on_metadata_arguments(metadata_arguments) end end alias on_numblock on_block @@ -46,7 +46,7 @@ def on_metadata(_symbols, _hash) private - def on_matadata_arguments(metadata_arguments) + def on_metadata_arguments(metadata_arguments) *symbols, last = metadata_arguments hash = nil case last&.type