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

Stub constants in specs #1286

Merged
merged 1 commit into from
Sep 4, 2024
Merged

Stub constants in specs #1286

merged 1 commit into from
Sep 4, 2024

Conversation

tombruijn
Copy link
Member

Follow-up of previous commits.

Instead of defining constants and manually removing them with remove_const (which wasn't done here) use the built-in RSpec helper stub_const. This will prevent constants from leaking into other specs.

[skip review]
[skip changeset]

Part of #299

Follow-up of previous commits.

Instead of defining constants and manually removing them with
`remove_const` (which wasn't done here) use the built-in RSpec helper
`stub_const`. This will prevent constants from leaking into other specs.
@tombruijn tombruijn added the chore label Sep 4, 2024
@tombruijn tombruijn self-assigned this Sep 4, 2024
@tombruijn tombruijn merged commit 7e3b1d1 into main Sep 4, 2024
122 checks passed
@tombruijn tombruijn deleted the more-const-stubs branch September 4, 2024 08:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant