From bfe02cd6825d4746b109d1adfb7dfa5b54b70ea7 Mon Sep 17 00:00:00 2001 From: Jon Rowe Date: Sat, 30 May 2020 11:23:48 +0100 Subject: [PATCH] Prevent rspec-expectations from issuing a warning when combined with rspec-core --- lib/rspec/core/example_group.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/rspec/core/example_group.rb b/lib/rspec/core/example_group.rb index 2654f105d3..5efee9f386 100644 --- a/lib/rspec/core/example_group.rb +++ b/lib/rspec/core/example_group.rb @@ -761,8 +761,9 @@ def method_missing(name, *args) "on an example group (e.g. a `describe` or `context` block)." end - super + super(name, *args) end + ruby2_keywords :method_missing if respond_to?(:ruby2_keywords, true) end # rubocop:enable Metrics/ClassLength