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

Prevent rspec-expectations from issuing a warning when combined with rspec-core #2731

Merged
merged 1 commit into from
May 30, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion lib/rspec/core/example_group.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down