Skip to content

Commit

Permalink
Merge pull request #2731 from rspec/fix-ruby2-keywords-for-other-gems
Browse files Browse the repository at this point in the history
Prevent rspec-expectations from issuing a warning when combined with rspec-core
  • Loading branch information
JonRowe committed Jun 5, 2020
1 parent d89b692 commit 9a96fd4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion 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 9a96fd4

Please sign in to comment.