1. Computing
Michael Morin

Unit Testing with MiniTest: Specs

By May 31, 2013

Follow me on:

While assertions are just fine, MiniTest also provides an RSpec-like interface for doing spec statements.  For example, instead of saying assert_empty a, you can simply say a.must_be_empty.  While this sounds like a small difference, it's much more readable.  And it shows off a bunch of Ruby internal voodoo that most other languages just aren't capable of doing.  And how can that be a bad thing?

Comments
No comments yet. Leave a Comment
Leave a Comment

Line and paragraph breaks are automatic. Some HTML allowed: <a href="" title="">, <b>, <i>, <strike>

©2014 About.com. All rights reserved.