Method: MiniTest::Assertions#skip

Defined in:
lib/minitest/unit.rb

#skip(msg = nil, bt = caller) ⇒ Object

Skips the current test. Gets listed at the end of the run but doesn’t cause a failure exit code.

Raises:


510
511
512
513
# File 'lib/minitest/unit.rb', line 510

def skip msg = nil, bt = caller
  msg ||= "Skipped, no message given"
  raise MiniTest::Skip, msg, bt
end