Comments (4)
Updated the test case to the following so it would pass on Ruby v1.8.7:
require 'rubygems'
require 'minitest/spec'
require 'minitest/autorun'
describe 'test' do
it 'will respond to must_output' do
proc { puts 'foo' }.must_output "foo\n"
end
end
from minitest.
This passes for me both on ruby 1.8 and 1.9 using ruby -Ilib bug6.rb
. So I'm gonna take a quick guess:
Replace require 'minitest/spec'
, with: gem "minitest"
.
from minitest.
Another verification:
after the require, add: puts MiniTest::Unit::VERSION
from minitest.
Replacing require with gem worked. Adding the puts
, on the other hand, did not. Got an uninitialized constant error for MiniTest
. But my tests are running now, so I'll consider the issue closed.
from minitest.
Related Issues (20)
- Minitest with JRuby HOT 7
- Minitest stub implementation changes a method's lookup to be on metaclass always
- #assert_all support HOT 4
- How to run skipped test? if I don't want to comment "skip" HOT 5
- NoMethodError: undefined method 'stubs'; alternative to nesting with `stub` HOT 2
- `-n /reg exp/` not working for me HOT 7
- 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
- MiniTest vs Minitest HOT 4
- [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
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.