Skip to content

Simplify how temp files are used when testing Git::Base#archive #621

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

Merged
merged 1 commit into from
Feb 19, 2023

Conversation

jcouball
Copy link
Member

Your checklist for this pull request

🚨Please review the guidelines for contributing to this repository.

  • Ensure all commits include DCO sign-off.
  • Ensure that your contributions pass unit testing.
  • Ensure that your contributions contain documentation if applicable.

Description

Use Dir::Tmpname.create to get a name of a temporary file instead of creating the file with Tempfile.new.

Also, each test should clean up manually after itself rather than having the complexity of keeping track of temp files and deleting them in the #cleanup method.

Signed-off-by: James Couball <jcouball@yahoo.com>
@jcouball jcouball merged commit cf74b91 into master Feb 19, 2023
@jcouball jcouball deleted the test_archive branch February 19, 2023 16:47
@jcouball jcouball mentioned this pull request Feb 26, 2023
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