lib/rbs/test.rb in rbs-3.3.2 vs lib/rbs/test.rb in rbs-3.4.0.pre.1

- old
+ new

@@ -1,11 +1,10 @@ # frozen_string_literal: true require "securerandom" require "rbs/test/guaranteed" require "rbs/test/observer" -require "rbs/test/spy" require "rbs/test/errors" require "rbs/test/type_check" require "rbs/test/tester" require "rbs/test/hook" require "rbs/test/setup_helper" @@ -20,10 +19,11 @@ CLASS = Kernel.instance_method(:class) SINGLETON_CLASS = Kernel.instance_method(:singleton_class) PP = Kernel.instance_method(:pp) INSPECT = Kernel.instance_method(:inspect) METHODS = Kernel.instance_method(:methods) + RESPOND_TOP = Kernel.instance_method(:respond_to?) class ArgumentsReturn include Guaranteed::Inspect attr_reader :arguments @@ -83,14 +83,14 @@ reset_suffix if ::UnboundMethod.instance_methods.include?(:bind_call) def self.call(receiver, method, *args, &block) - method.bind_call(receiver, *args, &block) + __skip__ = method.bind_call(receiver, *args, &block) end else def self.call(receiver, method, *args, &block) - method.bind(receiver).call(*args, &block) + __skip__ = method.bind(receiver).call(*args, &block) end end end end