From: normalperson@... Date: 2018-12-18T18:25:21+00:00 Subject: [ruby-core:90607] [Ruby trunk Bug#15433] OpenStruct NameError vs NoMethodError spec fails for method_missing Issue #15433 has been reported by normalperson (Eric Wong). ---------------------------------------- Bug #15433: OpenStruct NameError vs NoMethodError spec fails for method_missing https://bugs.ruby-lang.org/issues/15433 * Author: normalperson (Eric Wong) * Status: Open * Priority: Normal * Assignee: * Target version: * ruby -v: * Backport: 2.4: UNKNOWN, 2.5: UNKNOWN ---------------------------------------- ``` I've hit this with parallel tests on a bare trunk on all my Debian stable machines, not sure why, yet: 1) OpenStruct#method_missing when passed additional arguments raises a NoMethodErro r ERROR NameError: undefined local variable or method `test' for # $srcdir/lib/ostruct.rb:213:in `method_missing' $srcdir/spec/ruby/library/openstruct/method_missing_spec.rb:37:in `block (3 leve ls) in ' $srcdir/spec/ruby/library/openstruct/method_missing_spec.rb:37:in `block (2 leve ls) in ' $srcdir/spec/ruby/library/openstruct/method_missing_spec.rb:34:in `' ``` -- https://bugs.ruby-lang.org/ Unsubscribe: