Module MiniTest::Unit::Guard
In: lib/minitest/unit.rb

Provides a simple set of guards that you can use in your tests to skip execution if it is not applicable. These methods are mixed into TestCase as both instance and class methods so you can use them inside or outside of the test methods.

  def test_something_for_mri
    skip "bug 1234"  if jruby?
    # ...
  end

  if windows? then
    # ... lots of test methods ...
  end

Methods

jruby?   mri?   rubinius?   windows?  

Public Instance methods

[Validate]