Commit f794f1f
Eleven specs under tests/specs/ were exercising core framework APIs
(findEach/findInBatches, query builder, scopes, enums, pagination helpers,
middleware pipeline/order-resolver/rate-limiter, route model binding,
env() helper) but lived in the application test suite where they never
ran as part of the engines x databases CI matrix.
Move all eleven plus their fixture models into vendor/wheels/tests/specs/
so they run in the core suite, keeping tests/specs/ minimal as a starter
template (just ExampleSpec.cfc). Back-port the status column and enum
seed rows to core populate.cfm for EnumSpec; update crudSpec expanded
alias expectations to include the new column. Rewrite the six dotted
CFC references in MiddlewarePipelineSpec from tests.specs.middleware._helpers.*
to wheels.tests.specs.middleware._helpers.*. Port unique fixed/sliding/
tokenBucket pipeline-integration assertions from the app-level
RateLimiterSpec into the core spec, then delete the duplicate.
Also repair the MiddlewareOrderResolverSpec $entry helper — the spec
was authored against an assumed first-arg name but the resolver uses
pluginName as the default name, so before/after constraints never
matched. Now that the spec actually runs, pass name explicitly in
options so the constraints resolve.
Closes #2011
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent e0f8cd9 commit f794f1f
19 files changed
Lines changed: 273 additions & 397 deletions
File tree
- tests
- specs/middleware
- vendor/wheels/tests
- _assets/models
- specs
- dispatch
- global
- middleware
- _helpers
- model
- view
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
106 | 106 | | |
107 | 107 | | |
108 | 108 | | |
109 | | - | |
| 109 | + | |
110 | 110 | | |
111 | | - | |
112 | | - | |
113 | | - | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
114 | 114 | | |
115 | 115 | | |
116 | | - | |
117 | | - | |
| 116 | + | |
| 117 | + | |
118 | 118 | | |
This file was deleted.
File renamed without changes.
File renamed without changes.
0 commit comments