Does anyone know why I get the following error when I use the web_step#follow method?
When I follow "Stuff" within "#main-nav" # features/step_definitions/web_steps.rb:33 undefined local variable or method `node' for #<Capybara::Driver::RackTest::Node:0x00000101409b40> (NameError) ./features/step_definitions/web_steps.rb:35:in `block (2 levels) in <top (required)>' ./features/step_definitions/web_steps.rb:14:in `block in with_scope' ./features/step_definitions/web_steps.rb:14:in `with_scope' ./features/step_definitions/web_steps.rb:34:in `/^(?:|I )follow "([^"]*)"(?: within "([^"]*)")?$/'
This is the html output:
<ul id='main-nav'> <li><a href="/things">Things</a></li> <li><a href="/stuff">Stuff</a></li> </ul>
P.S. I have removed webrat and am solely using capybara
Thanks in advance!