【发布时间】:2015-03-23 18:35:42
【问题描述】:
byebug 调试器(具体来说,我正在使用 pry-byebug)提供的 step“伪函数”与 cucumber 提供的用于运行任意 cucumber 步骤的 step 函数之间存在冲突。
我尝试使用 byebug 的 eval 函数调用我的 step 函数,但这需要将引号嵌套三层,而且我还没有找到正确转义所有内容的方法。例如,这不起作用:
eval "step(\"I click on the \"Save order\" form button\")"
【问题讨论】:
标签: ruby-on-rails cucumber pry byebug