0
我正在使用黄瓜,Webrat和泡椒联合使用。 当我写一个方案,我可以做这样的事情:黄瓜和泡菜记录ID [Rails]
Given a product exists with title: "Bread"
When I go to the edit page for that product
And I fill in "Title" with "Milk"
And I press "Save changes"
Then I should see "Successfully edited product."
And I should be on that car's page
通知的for that product
。这是pickle提供的,它可以很方便地引用我检查存在的产品的记录。然而,最后一行不起作用。
基本上我试图确保我是该记录的显示页面,但由于我没有它的ID,我不知道如何引用它。
任何帮助? 谢谢!