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 10 11 12 13 14 15 |
# File 'lib/maxitest/pending.rb', line 3 def pending(reason=nil) if block_given? begin yield rescue StandardError, Minitest::Assertion skip reason else raise "Fixed" end else raise ArgumentError, "Need a block to execute" end end |