Skip to content

Commit

Permalink
Get rid of JRuby
Browse files Browse the repository at this point in the history
  • Loading branch information
nobu committed Feb 19, 2021
1 parent af13c2f commit 6bd095e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/rspec/mocks/verifying_double.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ def respond_to?(message, include_private=false)
end
end

if ::NoMethodError.method_defined?(:private_call?) # >= Ruby 2.4
if ::NoMethodError.method_defined?(:private_call?) and # >= Ruby 2.4
!(defined?(RUBY_ENGINE) and RUBY_ENGINE == "jruby")
# Get rid of calling overridden `method_missing`
missing_method = ::BasicObject.instance_method(:method_missing)

Expand Down

0 comments on commit 6bd095e

Please sign in to comment.