我的黄瓜功能文件使用如下场景大纲:
Scenario Outline:
And user searches for item "<item>"
Then homepage is active
And user selects "<type>" Type(s)
Examples:
| item | type |
| car | bmw |
| car | honda |
抛出以下错误消息:
undefined method `steps' for #<Cucumber::Ast::OutlineTable::ExampleRow:0x007f83buyg71120>
(NoMethodError)
我正在使用 cucumber 1.3.19 并在挂钩之前的 env.rb 文件中,我在下面使用抛出错误的位置:
scenario.steps.map(&:name)