You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ RUBYOPT="-r rbs/test/setup" RBS_TEST_OPT="-I handler.rbs" RBS_TEST_TARGET="Sample" ruby handler.rb
I, [2024-01-10T16:01:48.008226 #87538] INFO -- : Setting up hooks for ::Sample
I, [2024-01-10T16:01:48.008271 #87538] INFO -- rbs: Installing runtime type checker in Sample...
I, [2024-01-10T16:01:48.011547 #87538] INFO -- rbs: Setting up method hook in #handler...
handler.rb:25:in `block in <main>': super called outside of method (NoMethodError)
from /Users/ksss.rbenv/versions/3.3.0/lib/ruby/gems/3.3.0/gems/rbs-3.4.0/lib/rbs/test/hook.rb:113:in `instance_exec'
from /Users/ksss/.rbenv/versions/3.3.0/lib/ruby/gems/3.3.0/gems/rbs-3.4.0/lib/rbs/test/hook.rb:113:in `block in handler__with__RBS_TEST_20215d_84415718'
from handler.rb:19:in `block in call'
from handler.rb:19:in `map'
from handler.rb:19:in `call'
from handler.rb:27:in `<main>'
I have found a case where test fails to call
super
in a block during RBS::Test execution.Repro:
Real case: https://github.com/aws/aws-sdk-ruby/blob/b501a7f87aaf78f12667de2c436f4f6463fe6af9/gems/aws-sdk-core/spec/seahorse/client/handler_builder_spec.rb#L52-L55
The text was updated successfully, but these errors were encountered: