Skip to content

Commit ee5d99d

Browse files
committed
feat: update TDD references to shared reference file in build-strata-application-form
1 parent ee7f8b3 commit ee5d99d

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

  • skills/build-strata-application-form

skills/build-strata-application-form/SKILL.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Extends an existing Strata Rails app (typically scaffolded by the `build-strata-
1111

1212
**Scope (currently):** application forms only. Other Strata features (cases, business processes, tasks) are out of scope for this skill.
1313

14-
**TDD is mandatory.** Every step that produces or modifies Ruby code (model, migration, controller, views, routes) must follow the `test-driven-development` skill: write a failing RSpec spec, run `make test` to watch it fail, write minimal Ruby, run `make test` to watch it pass, then `make lint`. Generator output (model stubs, migration stubs, scaffold view specs) is NOT a substitute — replace generator-stub specs with real failing specs before adding behavior. See `skills/test-driven-development/SKILL.md` and `skills/test-driven-development/testing-anti-patterns.md`.
14+
**TDD is mandatory.** Every step that produces or modifies Ruby code (model, migration, controller, views, routes) must follow the `test-driven-development` skill: write a failing RSpec spec, run `make test` to watch it fail, write minimal Ruby, run `make test` to watch it pass, then `make lint`. Generator output (model stubs, migration stubs, scaffold view specs) is NOT a substitute — replace generator-stub specs with real failing specs before adding behavior. See [`references/test-driven-development.md`](../../references/test-driven-development.md).
1515

1616
## Step 1: Confirm intent
1717

@@ -223,7 +223,7 @@ Loop back to Step 9 if attribute changes are needed. Only proceed once every che
223223
- Required-attribute validations the rule file specifies
224224
- Status transitions (`in_progress``submitted`) and the immutability rule (no edits after `submitted`)
225225

226-
Run `make test` and confirm these specs **fail** (model doesn't exist yet). See the `test-driven-development` skill — do not skip the watch-it-fail step.
226+
Run `make test` and confirm these specs **fail** (model doesn't exist yet). See [`references/test-driven-development.md`](../../references/test-driven-development.md) — do not skip the watch-it-fail step.
227227

228228
**10e. Generate the model:**
229229

@@ -285,7 +285,7 @@ Save the answer as `<ENTRY_POINT>`. Do not invent — if the user is unclear, as
285285

286286
## Step 13: Generate views and wire up the entry point (TDD)
287287

288-
Follow the **generated `application_form` rule file's recipe** for views (controllers, views, routes). Apply TDD throughout — see `test-driven-development` skill.
288+
Follow the **generated `application_form` rule file's recipe** for views (controllers, views, routes). Apply TDD throughout — see [`references/test-driven-development.md`](../../references/test-driven-development.md).
289289

290290
**13a. Write failing request and system specs FIRST.** Cover at least:
291291

0 commit comments

Comments
 (0)