Commit 6f6a4cd
committed
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 0dc1cd407e7775610f2bcaef6c1282369867f91c and
caa5d8cdd7483647013af5e3d1701b0ed3ec8785 in ruby.
We can skip defining the test class entirely instead when ostruct is not
available.1 parent 1d0aee8 commit 6f6a4cd
1 file changed
+7
-1
lines changed| 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