Is it possible to mark a test as pending in MiniTest?

Lee McAlilly picture Lee McAlilly · Sep 23, 2012 · Viewed 16.8k times · Source

And if this is possible, what is the syntax for this?

Answer

phinze picture phinze · Nov 22, 2012

It took me a few minutes poking around on the RubyDocs to figure out the actual syntax for pulling this off. Figured I'd toss it here to save some future person a few clicks.

From inside your test, simply call the skip() method, like so:

skip("reason for skipping the test")

The method is MiniTest::Assertions#skip - http://docs.seattlerb.org/minitest/Minitest/Assertions.html#method-i-skip