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 #<OpenStruct>
$srcdir/lib/ostruct.rb:213:in `method_missing'
$srcdir/spec/ruby/library/openstruct/method_missing_spec.rb:37:in `block (3 leve
ls) in <top (required)>'
$srcdir/spec/ruby/library/openstruct/method_missing_spec.rb:37:in `block (2 leve
ls) in <top (required)>'
$srcdir/spec/ruby/library/openstruct/method_missing_spec.rb:34:in `<top (require
d)>'
```




-- 
https://bugs.ruby-lang.org/

Unsubscribe: <mailto:ruby-core-request / ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>