Skip to content
This repository was archived by the owner on Nov 30, 2024. It is now read-only.

Commit bfe02cd

Browse files
committed
Prevent rspec-expectations from issuing a warning when combined with rspec-core
1 parent 9f55faf commit bfe02cd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/rspec/core/example_group.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -761,8 +761,9 @@ def method_missing(name, *args)
761761
"on an example group (e.g. a `describe` or `context` block)."
762762
end
763763

764-
super
764+
super(name, *args)
765765
end
766+
ruby2_keywords :method_missing if respond_to?(:ruby2_keywords, true)
766767
end
767768
# rubocop:enable Metrics/ClassLength
768769

0 commit comments

Comments
 (0)