Module: Maxitest::Pending

Defined in:
lib/maxitest/pending.rb

Instance Method Summary collapse

Instance Method Details

#pending(reason = nil) ⇒ Object



3
4
5
6
7
8
9
# File 'lib/maxitest/pending.rb', line 3

def pending(reason=nil)
  yield
rescue Minitest::Assertion
  skip reason
else
  raise "Fixed"
end