Class: MiniTest::Spec

Inherits:
Unit::TestCase
  • Object
show all
Defined in:
lib/minitest/rails/shoulda/dsl.rb

Overview

Duck punch MiniTest::Spec to behave more like Shoulda

Instance Method Summary collapse

Instance Method Details

#skip(desc = "skipped", &block) ⇒ Object

Define a named expectation to be skipped for now. The implementation may or may not be present. The test is listed but does not cause a failure.

Add here so we have something to alias later…



20
21
22
23
24
# File 'lib/minitest/rails/shoulda/dsl.rb', line 20

def skip desc = "skipped", &block
  it desc do
    skip desc
  end
end