Skip to content

Commit

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

Prevent rspec-expectations from issuing a warning when combined with rspec-core
  • Loading branch information
JonRowe committed May 30, 2020
2 parents 5a9f698 + 3a700dc commit 10a77ee
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 10a77ee

Please sign in to comment.