Commit 1213adf
[ruby/json] Better handle missing ostruct
In the Ruby test suite, this test class is causing trouble because
ostruct is not available. Having an autoload for JSON::GenericObject but
causing it not to define the constant causes a warning.
See ruby/json@0dc1cd407e77 and
ruby/json@caa5d8cdd748 in ruby.
We can skip defining the test class entirely instead when ostruct is not
available.
ruby/json@6f6a4cdfd71 parent db027af commit 1213adf
1 file changed
Lines changed: 7 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
5 | 10 | | |
| 11 | + | |
6 | 12 | | |
7 | 13 | | |
8 | 14 | | |
| |||
0 commit comments