Method: Cucumber::RbSupport::RbWorld#pending

Defined in:
lib/cucumber/rb_support/rb_world.rb

#pending(message = "TODO") ⇒ Object

Mark the matched step as pending.



69
70
71
72
73
74
75
76
77
78
79
80
# File 'lib/cucumber/rb_support/rb_world.rb', line 69

def pending(message = "TODO")
  if block_given?
    begin
      yield
    rescue Exception => e
      raise Pending.new(message)
    end
    raise Pending.new("Expected pending '#{message}' to fail. No Error was raised. No longer pending?")
  else
    raise Pending.new(message)
  end
end