1
我使用Ryan Bates颇为可爱的nested form gem。它可以正常使用,但我没有找到用黄瓜进行测试的方法。我没有试图测试宝石本身,而是在完成表格后我的网站的行为。如何使用黄瓜测试使用nested_form gem的表单?
我使用的步骤与我在网站上使用的步骤完全相同。
Then I should see "Add a question" # features/step_definitions/web_steps.rb:105
When I follow "Add a question" # features/step_definitions/web_steps.rb:56
You have a nil object when you didn't expect it!
You might have expected an instance of Array.
The error occurred while evaluating nil.[] (NoMethodError)
你在这个时候是否启用了黄瓜的javascript引擎? – tal