-
-
Notifications
You must be signed in to change notification settings - Fork 1k
Remove warning caused by changes in minitest 5 #772
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
Conversation
Ran into this running Rails 4.1.0.beta and Ruby 2.0.0-p195. This is also probably a fix for #758 |
@vanstee this mostly looks good to me. @alindeman will probably have opinions. For my 2c I think this needs to go into 2-14, 2-99 and 3. Andy do you agree? |
D'oh. This blows up on older ruby versions. Maybe I can wrap this stuff up nicely and switch depending on the ruby version. Thoughts? |
@vanstee however it works we need to pass under 1.8.7. if you've got thoughts on how to do it then by all means go ahead! |
Is this ready to be reviewed again? Seems like there are still some Travis errors. Thanks for looking into this, @vanstee. |
Oops. Sorry about not following up on this. I was hoping we could just require |
This is in preparation of requiring different testing libraries based on the rails version.
Well that's a start. Tests pass until you hit the same problem in cucumber. I'll clean some stuff up later and get this ready for merging. |
Yay! All the test failures seem to be unrelated and I'm no longer seeing the warning on master. @alindeman let me know if there's anything else I can do to clean this up. |
Oops I guess I should probably leave the |
Is this comment still relevant? If so, I need a bit more info on what you mean. |
Other than the one error caused by a rubygems.org timeout, any reason not to trust the all green here and merge? https://travis-ci.org/alindeman/rspec-rails/builds/9561178 I believe the one failure on master is Rails' fault. I might look into it sometime. |
@alindeman I split out each adapter to clean things up. Let me know if the extra requires are something we should worry about. I can always remove those last two commits. |
This pull request fixes more than just the warnings. Loading Here is an example app to reproduce the failure: https://github.com/bricker/ruby-1.9.3-p0-failure A new error occurrs when running the example app's specs with this patch (plus upgrading to rspec 3.0.0.pre), but it's unrelated. The |
I'm playing with this a bit, and I think it's close. I'll plan to have it merged in by the weekend, barring any big issues. Thanks so much for getting this together @vanstee. |
@alindeman Thanks for the review. Let me know if there's anything I can do to clean it up. Wasn't sure if splitting up those adapter classes for readability was worth the extra |
For now, I think I may leave out that commit. It makes thing a bit harder to find, and we have to be sensitive of the number of |
@alindeman Was only able to test with |
Experienced this same problem with Rails-4.1.0.beta. Just upgraded to it and am using Ruby 2.0.0p353. Wasn't experiencing this issue before the upgrade. However, if I |
@gjaldon Looks like @alindeman fixed this one but I don't think it's been released as part of |
@vanstee thanks for the info. Will try that out. Btw, the warning isn't silenced when changing the order of |
I get this warning only when I have |
I can confirm @noahsw's scenario. It happens the moment I'm adding 'shoulda-matchers'. |
2.14.1 is released. Please open a new issue if there are still problems :) |
Upgrading to 2.14.1 fixed it for me. Thanks! |
Hmm... I've been using 2.14.1 this whole time. It still has the issue.
|
I'm still experiencing this issue. My Gemfile.lock looks like this.
|
> Warning: you should require 'minitest/autorun' instead. rspec/rspec-rails#772
Same here :( My environments:
|
@JonRowe Okay give me a minute |
@JonRowe OMG it's working without warning in new rails application. But I got same warning in my old application. Hmm .................. |
If you're still getting this error there's a chance it could be |
Thanks @dpickett, it silences the error. I'm running Rails 4.1.0.rc1 and RSpec 3.0.0.beta2
|
minitest5の変更のためか、rails 4.1でrspec 2.13.1だとwarnがでるらしい。 @see rspec/rspec-rails#772
minitest5の変更のためか、rails 4.1でrspec 2.13.1だとwarnがでるらしい。 @see rspec/rspec-rails#772
Thanks @dpickett ! Worked for me as well. |
Fixes the warning reading: "Warning: you should require
'minitest/autorun' instead."
Minitest 5 moved a few things around, such as the "MiniTest" to
"Minitest" module change, so those were updated as well.