# \[ANN\] miniunit 1.2.0 Released

**URL:** <https://rubytalk.org/t/ann-miniunit-1-2-0-released/47050>\
**Category:** ruby-talk\
**Created:** [10 June 2008 02:59 UTC](https://rubytalk.org/t/ann-miniunit-1-2-0-released/47050 "2008-06-10T02:59:33Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ryan\_Davis1](https://yyz1.discourse-cdn.com/flex029/user_avatar/rubytalk.org/ryan_davis1/32/1848_2.png) [@Ryan\_Davis1](https://rubytalk.org/u/Ryan_Davis1)\
**Post date:** [10 June 2008 02:59 UTC](https://rubytalk.org/t/ann-miniunit-1-2-0-released/47050/1 "2008-06-10T02:59:33Z")

</div>

miniunit version 1.2.0 has been released!

\* \<[http://rubyforge.org/projects/bfts](http://rubyforge.org/projects/bfts)\>

mini/test is a completely minimial drop-in replacement for ruby's  
test/unit. This is meant to be clean and easy to use both as a regular  
test writer and for language implementors that need a minimal set of  
methods to bootstrap a working unit test suite.

mini/spec is a functionally complete spec engine.

mini/mock, by Steven Baker, is a beautifully tiny mock object framework.

Changes:

### 1.2.0 / 2008-06-09

\* 2 major enhancements:

&nbsp;&nbsp;&nbsp;\* Added Mini::Spec.  
&nbsp;&nbsp;&nbsp;\* Added Mini::Mock. Thanks Steven Baker!!

\* 23 minor enhancements:

&nbsp;&nbsp;&nbsp;\* Added bin/use\_miniunit to make it easy to test out miniunit.  
&nbsp;&nbsp;&nbsp;\* Added -n filtering, thanks to Phil Hagelberg!  
&nbsp;&nbsp;&nbsp;\* Added args argument to #run, takes ARGV from at\_exit.  
&nbsp;&nbsp;&nbsp;\* Added test name output if $DEBUG.  
&nbsp;&nbsp;&nbsp;\* Added a refute (was deny) for every assert.  
&nbsp;&nbsp;&nbsp;\* Added capture\_io and a bunch of nice assertions from zentest.  
&nbsp;&nbsp;&nbsp;\* Added deprecation mechanism for assert\_no/not methods to test/unit/assertions.  
&nbsp;&nbsp;&nbsp;\* Added pp output when available.  
&nbsp;&nbsp;&nbsp;\* Added tests for all assertions. Pretty much maxed out coverage.  
&nbsp;&nbsp;&nbsp;\* Added tests to verify consistency and good naming.  
&nbsp;&nbsp;&nbsp;\* Aliased and deprecated all ugly assertions.  
&nbsp;&nbsp;&nbsp;\* Cleaned out test/unit. Moved autorun there.  
&nbsp;&nbsp;&nbsp;\* Code cleanup to make extensions easier. Thanks Chad!  
&nbsp;&nbsp;&nbsp;\* Got spec args reversed in all but a couple assertions. Much more readable.  
&nbsp;&nbsp;&nbsp;\* Improved error messages across the board. Adds your message to the default.  
&nbsp;&nbsp;&nbsp;\* Moved into Mini namespace, renamed to Mini::Test and Mini::Spec.  
&nbsp;&nbsp;&nbsp;\* Pulled the assertions into their own module...  
&nbsp;&nbsp;&nbsp;\* Removed as much code as I could while still maintaining full functionality.  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\* Moved filter\_backtrace into MiniTest.  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\* Removed MiniTest::Unit::run. Unnecessary.  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\* Removed location\_of\_failure. Unnecessary.  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\* Rewrote test/unit's filter\_backtrace. Flog from 37.0 to 18.1  
&nbsp;&nbsp;&nbsp;\* Removed assert\_send. Google says it is never used.  
&nbsp;&nbsp;&nbsp;\* Renamed MiniTest::Unit.autotest to #run.  
&nbsp;&nbsp;&nbsp;\* Renamed deny to refute.  
&nbsp;&nbsp;&nbsp;\* Rewrote some ugly/confusing default assertion messages.  
&nbsp;&nbsp;&nbsp;\* assert\_in\_delta now defaults to 0.001 precision. Makes specs prettier.

\* 9 bug fixes:

&nbsp;&nbsp;&nbsp;\* Fixed assert\_raises to raise outside of the inner-begin/rescue.  
&nbsp;&nbsp;&nbsp;\* Fixed for ruby 1.9 and rubinius.  
&nbsp;&nbsp;&nbsp;\* No longer exits 0 if exception in code PRE-test run causes early exit.  
&nbsp;&nbsp;&nbsp;\* Removed implementors method list from mini/test.rb - too stale.  
&nbsp;&nbsp;&nbsp;\* assert\_nothing\_raised takes a class as an arg. wtf? STUPID  
&nbsp;&nbsp;&nbsp;\* ".EF" output is now unbuffered.  
&nbsp;&nbsp;&nbsp;\* Bunch of changes to get working with rails... UGH.  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\* Added stupid hacks to deal with rails not requiring their dependencies.  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\* Now bitch loudly if someone defines one of my classes instead of requiring.  
&nbsp;&nbsp;&nbsp;\* Fixed infect method to work better on 1.9.  
&nbsp;&nbsp;&nbsp;\* Fixed all shadowed variable warnings in 1.9.

\* \<[http://rubyforge.org/projects/bfts](http://rubyforge.org/projects/bfts)\>
