Skip to content

TestHelper.load_fixture should fail if attributes don't match #74

@ragalie

Description

@ragalie

I ran into an issue today where tests were failing because the FrozenRecord object lacked a method that the calling code expected to be present.

This happened because while the production YAML file had been updated to include a new attribute, no record in the test fixture had it.

How would you feel about updating load_fixture to raise an error if the attributes in the test file don't match the attributes already present on the model class? Perhaps failing like this is an option to load_records?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions