Cucumber Failing with Nokogiri

Posted by Paul on Stack Overflow See other posts from Stack Overflow or by Paul
Published on 2010-06-11T20:32:19Z Indexed on 2010/06/14 10:22 UTC
Read the original article Hit count: 284

Filed under:
|

I just started using Cucumber and in the simplest of scenarios I throw the following error:

undefined method has_key?' for #<Nokogiri::XML::Element:0x10677a400> (NoMethodError) ./features/step_definitions/web_steps.rb:36:in/^(?:|I )fill in "([^"])" with "([^"])"$/' features/authentication.feature:9:in `When I fill in "user_name" with "Joe User"'

The Scenario is as follows...

Scenario: Signup Given I go to the signup page When I fill in "user_name" with "Joe User"

Is this a problem in the Scenario, Cucumber, or Nokogiri? Any Solutions?

© Stack Overflow or respective owner

Related posts about cucumber

Related posts about nokogiri