Skip to content

Commit

Permalink
[core] Merge pull request rspec/rspec-core#2731 from rspec/fix-ruby2-…
Browse files Browse the repository at this point in the history
…keywords-for-other-gems

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

---
This commit was imported from rspec/rspec-core@9a96fd4.
  • Loading branch information
JonRowe committed Jun 5, 2020
1 parent ea637e4 commit 84106b8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion rspec-core/lib/rspec/core/example_group.rb
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

0 comments on commit 84106b8

Please sign in to comment.