Blank Pad Development

A photo of Jon

Hello There

I’m Jon, a web developer working for Hubbub to make it easier for people to buy great food from their local shops.

This is where I occassionally write about what I'm doing, and make a note of anything I'm likely to want to Google in the future!

Cucumber and Capybara Failures With Rails 3

I just hit this problem where Capybara fails while running under Rails 3 with this error when trying to follow a link.

undefined local variable or method `node' for #<Capybara::Driver::RackTest::Node:object_id> (NameError)

According to the Jonas Nicklas the author, it’s solved by removing the line in features/support/env.rb which enables Javascript emulation, because that feature no longer exists in Capybara.

Comment out or delete this:

require 'cucumber/rails/capybara_javascript_emulation' # Lets you click links with onclick javascript handlers without using @culerity or @javascript

And all should be well.

blog comments powered by Disqus