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 crashing when minitest-rails is loaded. #20747

Merged
merged 1 commit into from
Jul 1, 2015

Conversation

pwnall
Copy link
Contributor

@pwnall pwnall commented Jul 1, 2015

The improvments to the test runner's integration with minitest in commit b6fc8e2 add methods to the Minitest module that refer to the Rails module. Unfortunately, when the minitest-rails gem is loaded, the reference is incorrectly resolved to the Minitest::Rails module.

I fixed this by switching those references to absolute references. I'm not sure how to add tests for this change, but I tested it manually and it works with the rails5 branch of minitest-rails.

The improvments to the test runner's integration with minitest in commit
b6fc8e2 add methods to the Minitest
module that refer to the Rails module. Unfortunately, when the
minitest-rails gem is loaded, the reference is incorrectly resolved to
the Minitest::Rails module.
kaspth added a commit that referenced this pull request Jul 1, 2015
Avoid crashing when minitest-rails is loaded.
@kaspth kaspth merged commit 1099e54 into rails:master Jul 1, 2015
@kaspth
Copy link
Contributor

kaspth commented Jul 1, 2015

Oops, thanks for helping us out ❤️

@pwnall
Copy link
Contributor Author

pwnall commented Jul 1, 2015

@kaspth Thank you for the fast turnaround!

FWIW, I'm glad things happened this way. I got to learn that "rails test" now runs tests by line number. I really ❤️ that feature! Great work!

@kaspth
Copy link
Contributor

kaspth commented Jul 1, 2015

No problem, and thanks :)

Kasper

On 1. jul. 2015 13.46 +0200, Victor Costannotifications@github.com, wrote:

@kaspth(https://github.com/kaspth)Thank you for the fast turnaround!

FWIW, I'm glad things happened this way. I got to learn that "rails test" now runs tests by line number. I reallythat feature! Great work!


Reply to this email directly orview it on GitHub(#20747 (comment)).

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.

2 participants