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