language and serves as documentation, automated tests and development-aid - all rolled into one format Feature: Cash Withdrawal Scenario: Successful withdrawal from an account in credit Given I have deposited $100 in my ac- count When I request $40 Then $20 should be dispensed
/^I request \$(\d+)$/ do |arg1| pending # express the regexp above with the code you wish you had end Then /^\$(\d+) should be dispensed$/ do |arg1| pending # express the regexp above with the code you wish you had end