Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When running cucumber I get "undefined method `split' for name(.):XPath::Expression::Name (NoMethodError)" #808

Closed
phss opened this issue Mar 17, 2012 · 9 comments
Milestone

Comments

@phss
Copy link

phss commented Mar 17, 2012

Might be doing something silly, as I am new to padrino, but for a brand new project (for instance, created with "padrino g project testing -t cucumber -b") I get the following exception when running "cucumber features":

testing> cucumber features Using the default profile... undefined method split' for name(.):XPath::Expression::Name (NoMethodError)
/Users/moonpxi/.rvm/gems/ruby-1.9.2-p290/gems/padrino-core-0.10.6/lib/padrino-core/reloader.rb:106:in block in lock!' /Users/moonpxi/.rvm/gems/ruby-1.9.2-p290/gems/padrino-core-0.10.6/lib/padrino-core/reloader.rb:106:in map'
/Users/moonpxi/.rvm/gems/ruby-1.9.2-p290/gems/padrino-core-0.10.6/lib/padrino-core/reloader.rb:106:in lock!' /Users/moonpxi/.rvm/gems/ruby-1.9.2-p290/gems/padrino-core-0.10.6/lib/padrino-core/loader.rb:68:in load!'
/Users/moonpxi/tmp/testing/config/boot.rb:29:in <top (required)>' /Users/moonpxi/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:55:in require'
/Users/moonpxi/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:55:in require' /Users/moonpxi/tmp/testing/features/support/env.rb:2:in <top (required)>'
/Users/moonpxi/.rvm/gems/ruby-1.9.2-p290/gems/cucumber-1.1.9/lib/cucumber/rb_support/rb_language.rb:129:in load' /Users/moonpxi/.rvm/gems/ruby-1.9.2-p290/gems/cucumber-1.1.9/lib/cucumber/rb_support/rb_language.rb:129:in load_code_file'
/Users/moonpxi/.rvm/gems/ruby-1.9.2-p290/gems/cucumber-1.1.9/lib/cucumber/runtime/support_code.rb:171:in load_file' /Users/moonpxi/.rvm/gems/ruby-1.9.2-p290/gems/cucumber-1.1.9/lib/cucumber/runtime/support_code.rb:83:in block in load_files!'
/Users/moonpxi/.rvm/gems/ruby-1.9.2-p290/gems/cucumber-1.1.9/lib/cucumber/runtime/support_code.rb:82:in each' /Users/moonpxi/.rvm/gems/ruby-1.9.2-p290/gems/cucumber-1.1.9/lib/cucumber/runtime/support_code.rb:82:in load_files!'
/Users/moonpxi/.rvm/gems/ruby-1.9.2-p290/gems/cucumber-1.1.9/lib/cucumber/runtime.rb:175:in load_step_definitions' /Users/moonpxi/.rvm/gems/ruby-1.9.2-p290/gems/cucumber-1.1.9/lib/cucumber/runtime.rb:40:in run!'
/Users/moonpxi/.rvm/gems/ruby-1.9.2-p290/gems/cucumber-1.1.9/lib/cucumber/cli/main.rb:43:in execute!' /Users/moonpxi/.rvm/gems/ruby-1.9.2-p290/gems/cucumber-1.1.9/lib/cucumber/cli/main.rb:20:in execute'
/Users/moonpxi/.rvm/gems/ruby-1.9.2-p290/gems/cucumber-1.1.9/bin/cucumber:14:in <top (required)>' /Users/moonpxi/.rvm/gems/ruby-1.9.2-p290/bin/cucumber:19:in load'
/Users/moonpxi/.rvm/gems/ruby-1.9.2-p290/bin/cucumber:19:in <main>'

Am I doing something obviously wrong? Also, my padrino version is v. 0.10.6.

@phss
Copy link
Author

phss commented Mar 17, 2012

Actually, the proposed fix for #807 would also fix this issue.

DAddYE added a commit that referenced this issue Mar 18, 2012
@nesquena
Copy link
Member

@DAddYE should we release a quick fix version 0.10.7?

@DAddYE
Copy link
Member

DAddYE commented Apr 24, 2012

yup! Working on it now, few fixed and we are ready.

@nesquena
Copy link
Member

This is fixed for the upcoming release, closing

@basiszwo
Copy link

when are you planning to release v.0.10.7?

@argent-smith
Copy link

Any movement to there? The framework seems to be awesome until we try to do BDD. Weird...

@ngelx
Copy link

ngelx commented Jun 19, 2012

+1

@nesquena
Copy link
Member

This should be fixed now in 0.10.7, please respond back with any confirmations. Thanks!

@ngelx
Copy link

ngelx commented Jun 21, 2012

thanks @nesquena, nice work. I can confirm that it is fix for capybara (V 1.1.2) that had had the same issue that the one reported here for cucumber.

Thanks again,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants