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

Avoid testing Thor internals #41203

Merged

Conversation

jonathanhefner
Copy link
Member

Thor's apply method is responsible for fetching a template when given a URL. Therefore, assume that apply behaves correctly, and simply test that apply is called correctly.

This avoids errors like https://buildkite.com/rails/rails/builds/74245#540ecdf1-58ea-470a-a397-09f675520eb9/1100-1109 resulting from rails/thor@4ce38c5.

Thor's `apply` method is responsible for fetching a template when given
a URL.  Therefore, assume that `apply` behaves correctly, and simply
test that `apply` is called correctly.

This avoids errors like https://buildkite.com/rails/rails/builds/74245#540ecdf1-58ea-470a-a397-09f675520eb9/1100-1109
resulting from rails/thor@4ce38c5.
@rails-bot rails-bot bot added the railties label Jan 21, 2021
@rafaelfranca rafaelfranca merged commit a1c5529 into rails:main Jan 21, 2021
rafaelfranca added a commit that referenced this pull request Jan 22, 2021
rafaelfranca added a commit that referenced this pull request Jan 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants