Skip to content

Add with_tempdir spec helper#16005

Merged
straight-shoota merged 4 commits intocrystal-lang:masterfrom
straight-shoota:feat/spec-with_tempdir
Jul 23, 2025
Merged

Add with_tempdir spec helper#16005
straight-shoota merged 4 commits intocrystal-lang:masterfrom
straight-shoota:feat/spec-with_tempdir

Conversation

@straight-shoota
Copy link
Member

@straight-shoota straight-shoota commented Jul 19, 2025

Adds a convenient spec helper to simplify the pattern with_tempfile + Dir.mkdir + Dir.cd which is found all over the place.
Like with_tempfile, this helper is part of the spec library and available to all users of the standard library.

It also replaces the private within_temporary_directory helper from init_spec.

@straight-shoota straight-shoota added this to the 1.18.0 milestone Jul 21, 2025
@straight-shoota straight-shoota merged commit 95edf3b into crystal-lang:master Jul 23, 2025
38 checks passed
@straight-shoota straight-shoota deleted the feat/spec-with_tempdir branch July 23, 2025 16:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants