Skip to content

Add rake task to update snapshots#294

Merged
jonallured merged 1 commit intomainfrom
add-rake-task-to-update-snapshots
Feb 23, 2026
Merged

Add rake task to update snapshots#294
jonallured merged 1 commit intomainfrom
add-rake-task-to-update-snapshots

Conversation

@jonallured
Copy link
Copy Markdown
Owner

This PR adds a new rake task that can be used to update snapshots:

$ bundle exec rake update_snapshots

I don't use many snapshot tests but with my CRUD pages generator I do and I expect that I'll also use this approach if/when I get to the CRUD API generator. Maybe I'll find another use for it too - not sure! Oh for bonus points I also left a comment for Future Jon right where the tests usually fail so I can remember how to update them.

In terms of how I update them, I'm only updating the ones that commonly change during the normal course of developing this app. I might change this too if at some point I want to update all of the snapshots and this is not capable of doing that. We shall see!

@jonallured jonallured enabled auto-merge (rebase) February 23, 2026 22:12
@jonallured jonallured merged commit 0147158 into main Feb 23, 2026
1 check passed
@jonallured jonallured deleted the add-rake-task-to-update-snapshots branch February 23, 2026 22:13
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.

1 participant