Methods

Class/Module Index [+]

Quicksearch

Spec::Example::Pending

Public Instance Methods

pending(message = "TODO") click to toggle source
# File lib/spec/example/pending.rb, line 4
def pending(message = "TODO")
  if block_given?
    begin
      yield
    rescue Exception
      raise Spec::Example::ExamplePendingError.new(message)
    end
    raise Spec::Example::PendingExampleFixedError.new("Expected pending '#{message}' to fail. No Error was raised.")
  else
    raise Spec::Example::ExamplePendingError.new(message)
  end
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.