Skip to content

Validate test fixture attributes - #81

Open
Guflly wants to merge 1 commit into
byroot:masterfrom
Guflly:fix/fixture-attribute-validation
Open

Validate test fixture attributes#81
Guflly wants to merge 1 commit into
byroot:masterfrom
Guflly:fix/fixture-attribute-validation

Conversation

@Guflly

@Guflly Guflly commented Aug 2, 2026

Copy link
Copy Markdown

Makes TestHelper.load_fixture compare alternate fixture attributes with the attributes already loaded on the model. Missing or unexpected attributes raise a clear error, and the original fixture state is restored before the error is returned.

Closes #74.

Tested in normal and MINIMAL=true modes:

  • focused specs: 12 examples, 0 failures
  • full suite: 149/148 examples, 0 failures, 2 existing pending

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

TestHelper.load_fixture should fail if attributes don't match

1 participant