Methods

Class/Module Index [+]

Quicksearch

RSpec::Core::Pending

Public Instance Methods

pending(message = 'No reason given') click to toggle source
# File lib/rspec/core/pending.rb, line 4
def pending(message = 'No reason given')
  example.metadata[:pending] = true
  example.metadata[:execution_result][:pending_message] = message
  if block_given?
    begin
      result = yield
      example.metadata[:pending] = false
    rescue Exception => e
    end
    raise RSpec::Core::PendingExampleFixedError.new if result
  end
  throw :pending_declared_in_example, message
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.