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

Test Cleanup: Improve test setup #1183

Merged

Conversation

stevepolitodesign
Copy link
Contributor

Use touch test helper instead of directly working with the File class during the setup phase.

Also create file_fixtures to simplify test setup.

Because the newly added file fixtures are processed with standard, I needed to adjust the testing generator to account for a minor violation.

Use `touch` test helper instead of directly working with the `File`
class during the setup phase.

Also create [file_fixtures][] to simplify test setup.

Because the newly added file fixtures are processed with standard, I
needed to adjust the testing generator to account for a minor violation.

[file_fixtures]: https://api.rubyonrails.org/classes/ActiveSupport/Testing/FileFixtures.html#method-i-file_fixture
@stevepolitodesign stevepolitodesign merged commit 1c9134f into suspenders-3-0-0 Apr 5, 2024
2 checks passed
@stevepolitodesign stevepolitodesign deleted the suspenders-3-0-0-refactor-tests branch April 5, 2024 18:10
stevepolitodesign added a commit that referenced this pull request Apr 13, 2024
Use `with_test_suite` helper to clean up existing test setup.

Also cleans up test setup by using a `file_fixture` that was missed in #1183
stevepolitodesign added a commit that referenced this pull request Apr 13, 2024
Use `with_test_suite` helper to clean up existing test setup. This was
more relevant when exploring #1156, but is still helpful for generators
that are test suite agnostic.

Also cleans up test setup by using a `file_fixture` that was missed in #1183
stevepolitodesign added a commit that referenced this pull request Apr 13, 2024
Use `with_test_suite` helper to clean up existing test setup. This was
more relevant when exploring #1156, but is still helpful for generators
that are test suite agnostic.

Also cleans up test setup by using a `file_fixture` that was missed in #1183
stevepolitodesign added a commit that referenced this pull request May 10, 2024
Use `touch` test helper instead of directly working with the `File`
class during the setup phase.

Also create [file_fixtures][] to simplify test setup.

Because the newly added file fixtures are processed with standard, I
needed to adjust the testing generator to account for a minor violation.

[file_fixtures]: https://api.rubyonrails.org/classes/ActiveSupport/Testing/FileFixtures.html#method-i-file_fixture
stevepolitodesign added a commit that referenced this pull request May 10, 2024
Use `with_test_suite` helper to clean up existing test setup. This was
more relevant when exploring #1156, but is still helpful for generators
that are test suite agnostic.

Also cleans up test setup by using a `file_fixture` that was missed in #1183
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