Commit df526fc
committed
Load the example scalar coercion adapter from a consistent path
The extension loader raises if the same extension constant is loaded from two
different `require_path`s within one process. `scalar_type_extension_spec`
loaded `ExampleScalarCoercionAdapter` via an absolute path while
`elasticgraph-schema_definition`'s `scalar_types_by_name_spec` used a
relative one, so any spec worker that ran both files failed 17 examples with
`InvalidExtensionError`. Use the same relative path (with a local copy of the
example adapter so the gem's own suite can resolve it).1 parent 1c79f46 commit df526fc
2 files changed
Lines changed: 19 additions & 1 deletion
File tree
- elasticgraph-json_ingestion/spec
- support/example_extensions
- unit/elastic_graph/json_ingestion/schema_definition/schema_elements
Lines changed: 15 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
94 | 94 | | |
95 | 95 | | |
96 | 96 | | |
97 | | - | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
98 | 101 | | |
99 | 102 | | |
100 | 103 | | |
| |||
0 commit comments