Commit d84c681
The default rootBoxJsonPath resolved "../box.json" from Global.cfc's
directory (vendor/wheels/), pointing at vendor/box.json which does not
exist. At runtime boot via onapplicationstart.cfc — where the helper
is called with no arguments — this silently fell through to
"0.0.0-dev" even inside a wheels-dev/wheels checkout. Walking up two
levels reaches <repo-root>/box.json so application.wheels.version now
resolves to "<rootversion>-dev" as intended.
Adds a regression spec that asserts application.wheels.version at boot
(rather than invoking the helper directly), because WheelsTest.cfc
binds methods into each spec's scope which shifts GetCurrentTemplatePath()
and bypasses the code path we need to cover. The existing specs all
passed explicit path arguments, leaving the default-args computation
uncovered.
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 6dda45e commit d84c681
2 files changed
Lines changed: 36 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2788 | 2788 | | |
2789 | 2789 | | |
2790 | 2790 | | |
2791 | | - | |
| 2791 | + | |
2792 | 2792 | | |
2793 | 2793 | | |
2794 | 2794 | | |
| |||
Lines changed: 35 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
85 | 85 | | |
86 | 86 | | |
87 | 87 | | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
88 | 123 | | |
89 | 124 | | |
90 | 125 | | |
| |||
0 commit comments