【发布时间】:2015-01-24 01:37:56
【问题描述】:
我是 Ruby 和 BDD 的新手。我正在尝试使用 BDD 和黄瓜来解决 [Bank OCR Kata] (http://codingdojo.org/cgi-bin/wiki.pl?KataBankOCR),但我在第一步被卡住了。由于 Kata 使用“|”和多行字符串作为输入。如何将此输入提供给方案大纲。我正在尝试构建像
这样的功能Scenario Outline: submit account number
Given the scanner is ready
When the account number is "<account>"
Then the response should be "<response>"
Scenarios: read account
|account| response |
【问题讨论】: