Closed dieuit07 closed 12 years ago
On Thu, Feb 23, 2012 at 7:53 AM, dieuit07 reply@reply.github.com wrote:
I have file cabybara.rb in features/support (Content: Capybara.javascript_driver = :selenium) My test script is run fine. But then I add @javascript: @javascript Scenario: login to edit information account ....
Your cucumber and cucumber-rails versions are rather old. Try upgrading to the latest versions of both.
I have this error: undefined method
each_pair' for 19:Fixnum (NoMethodError) /home/wf04/.rvm/gems/ruby-1.9.2-p290/gems/actionpack-3.0.10/lib/action_view/helpers/tag_helper.rb:120:in
tag_options' /home/wf04/.rvm/gems/ruby-1.9.2-p290/gems/actionpack-3.0.10/lib/action_view/helpers/tag_helper.rb:48:intag' /home/wf04/.rvm/gems/ruby-1.9.2-p290/gems/gherkin-2.3.6/lib/gherkin/lexer/i18n_lexer.rb:23:in
scan' /home/wf04/.rvm/gems/ruby-1.9.2-p290/gems/gherkin-2.3.6/lib/gherkin/lexer/i18n_lexer.rb:23:inscan' /home/wf04/.rvm/gems/ruby-1.9.2-p290/gems/gherkin-2.3.6/lib/gherkin/parser/parser.rb:31:in
parse' /home/wf04/.rvm/gems/ruby-1.9.2-p290/gems/cucumber-0.10.2/lib/cucumber/feature_file.rb:37:inparse' /home/wf04/.rvm/gems/ruby-1.9.2-p290/gems/cucumber-0.10.2/lib/cucumber/runtime/features_loader.rb:28:in
block in load' /home/wf04/.rvm/gems/ruby-1.9.2-p290/gems/cucumber-0.10.2/lib/cucumber/runtime/features_loader.rb:26:ineach' /home/wf04/.rvm/gems/ruby-1.9.2-p290/gems/cucumber-0.10.2/lib/cucumber/runtime/features_loader.rb:26:in
load' /home/wf04/.rvm/gems/ruby-1.9.2-p290/gems/cucumber-0.10.2/lib/cucumber/runtime/features_loader.rb:14:infeatures' /home/wf04/.rvm/gems/ruby-1.9.2-p290/gems/cucumber-0.10.2/lib/cucumber/runtime.rb:132:in
features' /home/wf04/.rvm/gems/ruby-1.9.2-p290/gems/cucumber-0.10.2/lib/cucumber/runtime.rb:45:inrun!' /home/wf04/.rvm/gems/ruby-1.9.2-p290/gems/cucumber-0.10.2/lib/cucumber/cli/main.rb:43:in
execute!' /home/wf04/.rvm/gems/ruby-1.9.2-p290/gems/cucumber-0.10.2/lib/cucumber/cli/main.rb:20:inexecute' /home/wf04/.rvm/gems/ruby-1.9.2-p290/gems/cucumber-0.10.2/bin/cucumber:14:in
<top (required)>'I use ruby 1.9.2 and my gem version: * XMLCanonicalizer (1.0.1) * abstract (1.0.0) * actionmailer (3.0.10) * actionpack (3.0.10) * activemodel (3.0.10) * activerecord (3.0.10) * activeresource (3.0.10) * activesupport (3.0.10) * addressable (2.2.7) * arel (2.0.10) * awesome_print (1.0.2) * aws-s3 (0.6.2) * bcrypt-ruby (3.0.1) * best_in_place (0.2.3) * builder (2.1.2) * bundler (1.0.21) * capybara (1.1.2) * carrierwave (0.5.8) * celerity (0.9.2) * childprocess (0.3.1) * cocaine (0.2.1) * coderay (1.0.5) * cucumber (0.10.2) * cucumber-rails (0.4.1) * culerity (0.2.15) * daemons (1.0.10) * database_cleaner (0.6.7) * devise (1.4.9) * diff-lcs (1.1.3) * erubis (2.6.6) * excon (0.9.6) * factory_girl (2.2.0) * faker (1.0.1) * faraday (0.7.6) * ffi (1.0.11) * fixture_builder (0.3.3) * fog (1.1.2) * foreman (0.39.0) * formatador (0.2.1) * formtastic (2.0.2) * gem_plugin (0.2.3) * geokit (1.6.5) * geokit-rails3 (0.1.5) * gherkin (2.3.6) * haml (3.1.4) * haml-rails (0.3.4) * hashie (1.2.0) * headless (0.2.2) * honeypot-captcha (0.0.2) * hpricot (0.8.6) * i18n (0.5.0) * jasmine (1.1.2) * jasmine-core (1.1.0) * jquery-rails (1.0.19) * json (1.6.5) * koala (1.3.0) * launchy (2.0.5) * linkedin (0.3.6) * log4r (1.1.10) * macaddr (1.5.0) * mail (2.2.19) * method_source (0.7.0) * mime-types (1.17.2) * mongrel (1.2.0.pre2) * multi_json (1.0.4) * multi_xml (0.4.1) * multipart-post (1.1.5) * net-ldap (0.2.2) * net-scp (1.0.4) * net-ssh (2.3.0) * nokogiri (1.5.0) * oa-basic (0.3.2) * oa-core (0.3.2) * oa-enterprise (0.3.2) * oa-more (0.3.2) * oa-oauth (0.3.2) * oa-openid (0.3.2) * oauth (0.4.5) * oauth2 (0.5.2) * omniauth (0.3.2) * orm_adapter (0.0.6) * paperclip (2.6.0) * pg (0.13.2) * pickle (0.4.10) * polyglot (0.3.3) * pry (0.9.8.2) * pry-remote (0.1.1) * pyu-ruby-sasl (0.0.3.3) * rack (1.2.5) * rack-mount (0.6.14) * rack-openid (1.3.1) * rack-test (0.5.7) * rails (3.0.10) * railties (3.0.10) * rake (0.9.2.2) * rdoc (3.12) * recaptcha (0.3.4) * remotipart (0.4.2) * rest-client (1.6.7) * right_aws (3.0.0) * right_http_connection (1.3.0) * rspec (2.8.0) * rspec-core (2.8.0) * rspec-expectations (2.8.0) * rspec-mocks (2.8.0) * rspec-rails (2.8.1) * ruby-hmac (0.4.0) * ruby-openid (2.1.8) * ruby-openid-apps-discovery (1.2.0) * ruby_parser (2.3.1) * rubyntlm (0.1.1) * rubyzip (0.9.6.1) * selenium-webdriver (2.19.0) * sexp_processor (3.0.10) * slop (2.4.4) * spork (0.9.0.rc9) * sqlite3 (1.3.5) * systemu (2.4.2) * term-ansicolor (1.0.7) * thor (0.14.6) * treetop (1.4.10) * tzinfo (0.3.31) * uuid (2.3.5) * warden (1.0.6) * xml-simple (1.1.1) * xpath (0.1.4)
PLEASE HELP ME FIX THIS BUG. THANK YOU VERRY MUCH
Reply to this email directly or view it on GitHub: https://github.com/cucumber/cucumber-rails/issues/198
Please don't register a bug until you know it's a bug.
In this case things are not working because you have a mix of old and new gems. Try upgrading cucumber and cucumber-rails. If you still have problems, ask on the mailing list.
I have update cucumber , cucumber-rails , capybara to the last version but is still have this error undefined method `each_pair' for 4:Fixnum (NoMethodError) (@javascript in row 4)
In the first post @javascript in row 19 Thanks for attention
After you upgraded, can you list your gems again please?
( I have just sent you an email ), please check , thank you :) my gem:
And what's the stack trace now?
BTW - please use triple backquotes for console output. See GitHub Flavored Markdown.
SORRY for text ,I am a new mem , so I don 't know how to use it . Do you mean the error message:
bundle exec cucumber features
Using the default profile...
/home/wf04/Desktop/temp/....../config/initializers/devise.rb:211: warning: already initialized constant VERIFY_PEER
undefined method `each_pair' for 5:Fixnum (NoMethodError)
/home/wf04/.rvm/gems/ruby-1.9.2-p290/gems/actionpack-3.0.10/lib/action_view/helpers/tag_helper.rb:120:in `tag_options'
/home/wf04/.rvm/gems/ruby-1.9.2-p290/gems/actionpack-3.0.10/lib/action_view/helpers/tag_helper.rb:48:in `tag'
/home/wf04/.rvm/gems/ruby-1.9.2-p290/gems/gherkin-2.9.0/lib/gherkin/lexer/i18n_lexer.rb:22:in `scan'
/home/wf04/.rvm/gems/ruby-1.9.2-p290/gems/gherkin-2.9.0/lib/gherkin/lexer/i18n_lexer.rb:22:in `scan'
/home/wf04/.rvm/gems/ruby-1.9.2-p290/gems/gherkin-2.9.0/lib/gherkin/parser/parser.rb:31:in `parse'
/home/wf04/.rvm/gems/ruby-1.9.2-p290/gems/cucumber-1.1.9/lib/cucumber/feature_file.rb:37:in `parse'
/home/wf04/.rvm/gems/ruby-1.9.2-p290/gems/cucumber-1.1.9/lib/cucumber/runtime/features_loader.rb:28:in `block in load'
/home/wf04/.rvm/gems/ruby-1.9.2-p290/gems/cucumber-1.1.9/lib/cucumber/runtime/features_loader.rb:26:in `each'
/home/wf04/.rvm/gems/ruby-1.9.2-p290/gems/cucumber-1.1.9/lib/cucumber/runtime/features_loader.rb:26:in `load'
/home/wf04/.rvm/gems/ruby-1.9.2-p290/gems/cucumber-1.1.9/lib/cucumber/runtime/features_loader.rb:14:in `features'
/home/wf04/.rvm/gems/ruby-1.9.2-p290/gems/cucumber-1.1.9/lib/cucumber/runtime.rb:170:in `features'
/home/wf04/.rvm/gems/ruby-1.9.2-p290/gems/cucumber-1.1.9/lib/cucumber/runtime.rb:46:in `run!'
/home/wf04/.rvm/gems/ruby-1.9.2-p290/gems/cucumber-1.1.9/lib/cucumber/cli/main.rb:43:in `execute!'
/home/wf04/.rvm/gems/ruby-1.9.2-p290/gems/cucumber-1.1.9/lib/cucumber/cli/main.rb:20:in `execute'
/home/wf04/.rvm/gems/ruby-1.9.2-p290/gems/cucumber-1.1.9/bin/cucumber:14:in `<top (required)>'
/home/wf04/.rvm/gems/ruby-1.9.2-p290/bin/cucumber:19:in `load'
/home/wf04/.rvm/gems/ruby-1.9.2-p290/bin/cucumber:19:in `<main>'
See http://groups.google.com/group/cukes/browse_thread/thread/627caa1c473b6abc/ec838167abe90ad0 and https://github.com/cucumber/gherkin/issues/76
Are you including TagHelper
anywhere? If so, are you doing it at the top level object or in Kernel?
I just include this in my controller:
class UsersController < ApplicationController
include UsersHelper
in my model I have one
include UsersHelper
As you answer
It's definitely not the gherkin code that does this inclusion, so I'm going to assume it's your own code, Rails or possibly one of your gems/plugins that does this.
You can repeat clearly, if I want use these helpertag what should I do? Give me solution . :D
Thank you so much, I have placed all include tag helper in class define and it run fine :D
I have file cabybara.rb in features/support (Content: Capybara.javascript_driver = :selenium) My test script is run fine. But then I add @javascript: @javascript Scenario: login to edit information account ....
I have this error:
PLEASE HELP ME FIX THIS BUG. THANK YOU VERRY MUCH