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 #1285

Merged
merged 1 commit into from
Sep 4, 2024
Merged

Stub constants in specs #1285

merged 1 commit into from
Sep 4, 2024

Conversation

tombruijn
Copy link
Member

@tombruijn tombruijn commented Sep 4, 2024

Instead of defining constants and manually removing them with remove_const use the built-in RSpec helper stub_const. This will prevent constants from leaking into other specs.

[skip review]
[skip changeset]

Part of #299

@tombruijn tombruijn added the chore label Sep 4, 2024
@tombruijn tombruijn self-assigned this Sep 4, 2024
Instead of defining constants and manually removing them with
`remove_const` use the built-in RSpec helper `stub_const`. This will
prevent constants from leaking into other specs.
@tombruijn tombruijn merged commit 5a15407 into main Sep 4, 2024
122 checks passed
@tombruijn tombruijn deleted the stub_const-specs branch September 4, 2024 08:03
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