Skip to content

Commit

Permalink
Merge pull request #167 from pocke/add-ruby2_keywords
Browse files Browse the repository at this point in the history
Fix failing stdlib_test with Ruby 3 keyword argument
  • Loading branch information
soutaro committed Jan 3, 2020
2 parents f20ed04 + 69a51e0 commit 459df5a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ruby/signature/test/hook.rb
Expand Up @@ -289,7 +289,7 @@ def delegation(name, method_types, method_name)
end

result
end
end.ruby2_keywords
end

def verify(instance_method: nil, singleton_method: nil, types:)
Expand Down
2 changes: 2 additions & 0 deletions test/ruby/signature/test_test.rb
Expand Up @@ -3,6 +3,8 @@
require "ruby/signature/test"
require "logger"

return unless Gem::Version.new(RUBY_VERSION) >= Gem::Version.new('2.7.0')

class Ruby::Signature::TestTest < Minitest::Test
include TestHelper

Expand Down

0 comments on commit 459df5a

Please sign in to comment.