[ruby-core:90607] [Ruby trunk Bug#15433] OpenStruct NameError vs NoMethodError spec fails for method_missing

From: normalperson@...
Date: 2018-12-18 18:25:21 UTC
List: ruby-core #90607
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:[email protected]?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>

In This Thread

Prev Next