module Maxitest::Pending
Public Instance Methods
pending(reason=nil) { || ... }
click to toggle source
# 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