Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test that the model instance is deleted in the destroy method #625

Closed
wants to merge 1 commit into from

Conversation

mattr
Copy link
Contributor

@mattr mattr commented Oct 16, 2024

The generated spec for the destroy method only tests the redirect, not the actual model deletion. To do this, we need to ensure that the model is instantiated before performing the action.

The generated spec for the destroy method only tests the redirect, not the
actual model deletion. To do this, we need to ensure that the model is
instantiated before performing the action.
@mattr mattr force-pushed the issue/controller-spec-does-not-test-deletion branch from 68f6921 to 883b206 Compare October 21, 2024 05:08
@sfnelson
Copy link
Contributor

sfnelson commented Nov 6, 2024

Merged and released

@sfnelson sfnelson closed this Nov 6, 2024
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.

2 participants