Skip to content

Conversation

@tombruijn
Copy link
Member

I ran into an issue adding a spec with the line number "123". It would be replaced with "1?3" whenever Rails was loaded. That's because this spec left the filters in the cleaner's config.

Disable the filter after the spec has completed. I could go into the backtrace cleaner internals and remove the lambda from the @filters instance variable, but this solution with our global store that's only set to true for this spec is fine. The store is cleared after every spec.

[skip changeset]
[skip review]

I ran into an issue adding a spec with the line number "123". It would
be replaced with "1?3" whenever Rails was loaded. That's because this
spec left the filters in the cleaner's config.

Disable the filter after the spec has completed. I could go into the
backtrace cleaner internals and remove the lambda from the `@filters`
instance variable, but this solution with our global store that's only
set to true for this spec is fine. The store is cleared after every
spec.

[skip changeset]
@tombruijn tombruijn added the chore A small task that takes a day or two at the most. label Sep 25, 2024
@tombruijn tombruijn self-assigned this Sep 25, 2024
@tombruijn tombruijn merged commit 67f958e into main Sep 25, 2024
122 checks passed
@tombruijn tombruijn deleted the fix-transacton-spec-state branch September 25, 2024 09:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

chore A small task that takes a day or two at the most.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant