Module: Cucumber::World::Pending
- Defined in:
- lib/gems/cucumber-0.1.15/lib/cucumber/world/pending.rb
Instance Method Summary collapse
-
#pending(message = "TODO") ⇒ Object
Mark this step as pending.
Instance Method Details
#pending(message = "TODO") ⇒ Object
Mark this step as pending
7 8 9 10 11 12 13 14 15 16 17 18 |
# File 'lib/gems/cucumber-0.1.15/lib/cucumber/world/pending.rb', line 7 def pending( = "TODO") if block_given? begin yield rescue Exception => e raise Cucumber::ForcedPending.new() end raise Cucumber::ForcedPending.new("Expected pending '#{}' to fail. No Error was raised.") else raise Cucumber::ForcedPending.new() end end |