Comments (4)
This got me, I had extend MiniTest::Spec::DSL
. Fortunantly this issue pointed me in the right direction!
from minitest.
I can imagine a placeholder MiniTest that blows up instantly if you try to use it.
How do you envision this?
from minitest.
Maybe?
module MiniTest
class Test
def self.inherited(klass)
# gentle
warn "`MiniTest` is really ancient and deprecated, use `Minitest` pls"
# aggressive
raise "`MiniTest` is really ancient and deprecated, use `Minitest` pls"
end
end
end
from minitest.
Thanks for creating this issue - I just upgraded some gems and also had the error NameError: uninitialized constant MiniTest
which is because somehow MiniTest::Mock.new
used to work but not anymore.
Using the proper Minitest
module does the trick - unsurprisingly. Too bad I didn't get the usual Ruby like error messages along the lines of "did you mean 'Minitest'?"
from minitest.
Related Issues (20)
- JUnitReporter seems to silence seed HOT 2
- Make Minitest::Result extendable HOT 6
- Make `TestTask.create` adding itself as a `default` task dependency optional HOT 7
- v5.19's removal of MiniTest compatiblity layer broke Mocha HOT 5
- undefined method 'context' when running a spec file HOT 2
- [Feature Request] Running single test and single file in most sophisticated way. HOT 2
- Add mutex_m as a gem dependency HOT 3
- Is it possible to stub the SingletonClassMethods#instance method of a class that includes the Singleton module? HOT 1
- Feature request for Mock#verify to accept a custom message arg HOT 5
- Test doubles in Minitest HOT 2
- Add option for relative path output of test failures HOT 4
- Idea for catching outdated stubs HOT 2
- Raise an exception when no tests are found HOT 2
- Have the changes in the git tag and/or the release on GitHub? HOT 10
- NoMethodError for parallel tests HOT 1
- skip_all option? HOT 2
- No relative test path output if `SyntaxError` is encountered HOT 2
- The added "did you mean" output if your `--name` filter matches nothing breaks the Minitest behaviour for multiple runs of the `Minitest.run` method HOT 6
- Skipped tests while building, "not yet" HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from minitest.