Skip to content

Enum support: tests and documentation#1921

Merged
bpamiri merged 2 commits intodevelopfrom
peter/enum-support-1910
Mar 8, 2026
Merged

Enum support: tests and documentation#1921
bpamiri merged 2 commits intodevelopfrom
peter/enum-support-1910

Conversation

@bpamiri
Copy link
Collaborator

@bpamiri bpamiri commented Mar 7, 2026

Summary

Adds comprehensive tests and framework documentation for the enum() model property feature including auto-generated is*() boolean checkers, query scopes per enum value, and inclusion validation.

Related Issue

Closes #1910

Type of Change

  • New feature

Feature Completeness Checklist

  • Tests -- 11 unit tests covering boolean checkers, validation, auto-scopes, scope counting
  • Framework Docs -- New page in docs/src/database-interaction-through-models/enums.md with SUMMARY.md entry
  • AI Reference Docs -- Already exists at .ai/wheels/models/enums.md
  • CLAUDE.md -- Already documents enums in Model Quick Reference
  • CHANGELOG.md -- Entry under [Unreleased] section
  • Test runner passes -- All 11 new tests pass, 0 failures, 0 errors

Test Plan

Run enum tests:

/wheels/tests/core?package=model.properties.enums&format=json

Expected: 11 tests, 0 failures, 0 errors.

Schema Change

Adds status varchar(20) DEFAULT 'draft' NOT NULL column to c_o_r_e_posts test table in populate.cfm. Existing tests unaffected (column has a default value).

🤖 Generated with Claude Code

Replace RocketUnit tests with TestBox BDD specs for enum(), is*() checkers,
validation, and auto-generated scopes. Add shared test infrastructure.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@bpamiri bpamiri force-pushed the peter/enum-support-1910 branch from 726eebf to 3ea037b Compare March 7, 2026 20:18
@bpamiri bpamiri merged commit 85a5dea into develop Mar 8, 2026
3 of 45 checks passed
@bpamiri bpamiri deleted the peter/enum-support-1910 branch March 8, 2026 06:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Enum support on models

1 participant