cucumber/cucumber — Issue #219: How to solve problem wrong number of arguments
Author: sdilshod
Created: 2012-02-01 16:32:32+00:00
State: open

Hi again!!

When run cucumber, I get this error(i will get full trace)

wrong number of arguments (2 for 0) (ArgumentError)
/home/dilshod/.rvm/gems/ruby-1.9.2-p290/gems/gherkin-2.7.1/lib/gherkin/formatter/ansi_escapes.rb:78:in `block (2 levels) in '
/home/dilshod/.rvm/gems/ruby-1.9.2-p290/gems/actionpack-3.1.0/lib/action_view/helpers/form_tag_helper.rb:162:in `text_field_tag'
/home/dilshod/webapp/wage_calculation/app/helpers/application_helper.rb:6:in `block in append_row_to_table_tag'
/home/dilshod/webapp/wage_calculation/app/helpers/application_helper.rb:5:in `each'
/home/dilshod/webapp/wage_calculation/app/helpers/application_helper.rb:5:in `append_row_to_table_tag'
/home/dilshod/webapp/wage_calculation/features/step_definitions/fill_schedule_of_working_steps.rb:42:in `block in '
/home/dilshod/.rvm/gems/ruby-1.9.2-p290/gems/cucumber-1.1.4/lib/cucumber/core_ext/instance_exec.rb:48:in `instance_exec'
/home/dilshod/.rvm/gems/ruby-1.9.2-p290/gems/cucumber-1.1.4/lib/cucumber/core_ext/instance_exec.rb:48:in `block in cucumber_instance_exec'
/home/dilshod/.rvm/gems/ruby-1.9.2-p290/gems/cucumber-1.1.4/lib/cucumber/core_ext/instance_exec.rb:69:in `cucumber_run_with_backtrace_filtering'
/home/dilshod/.rvm/gems/ruby-1.9.2-p290/gems/cucumber-1.1.4/lib/cucumber/core_ext/instance_exec.rb:36:in `cucumber_instance_exec'
/home/dilshod/.rvm/gems/ruby-1.9.2-p290/gems/cucumber-1.1.4/lib/cucumber/rb_support/rb_step_definition.rb:62:in `invoke'
/home/dilshod/.rvm/gems/ruby-1.9.2-p290/gems/cucumber-1.1.4/lib/cucumber/step_match.rb:25:in `invoke'
/home/dilshod/.rvm/gems/ruby-1.9.2-p290/gems/cucumber-1.1.4/lib/cucumber/ast/step_invocation.rb:59:in `invoke'
/home/dilshod/.rvm/gems/ruby-1.9.2-p290/gems/cucumber-1.1.4/lib/cucumber/ast/step_invocation.rb:38:in `accept'
/home/dilshod/.rvm/gems/ruby-1.9.2-p290/gems/cucumber-1.1.4/lib/cucumber/ast/tree_walker.rb:99:in `block in visit_step'
/home/dilshod/.rvm/gems/ruby-1.9.2-p290/gems/cucumber-1.1.4/lib/cucumber/ast/tree_walker.rb:163:in `broadcast'
/home/dilshod/.rvm/gems/ruby-1.9.2-p290/gems/cucumber-1.1.4/lib/cucumber/ast/tree_walker.rb:98:in `visit_step'
/home/dilshod/.rvm/gems/ruby-1.9.2-p290/gems/cucumber-1.1.4/lib/cucumber/ast/step_collection.rb:15:in `block in accept'
/home/dilshod/.rvm/gems/ruby-1.9.2-p290/gems/cucumber-1.1.4/lib/cucumber/ast/step_collection.rb:14:in `each'
/home/dilshod/.rvm/gems/ruby-1.9.2-p290/gems/cucumber-1.1.4/lib/cucumber/ast/step_collection.rb:14:in `accept'
/home/dilshod/.rvm/gems/ruby-1.9.2-p290/gems/cucumber-1.1.4/lib/cucumber/ast/tree_walker.rb:93:in `block in visit_steps'
/home/dilshod/.rvm/gems/ruby-1.9.2-p290/gems/cucumber-1.1.4/lib/cucumber/ast/tree_walker.rb:163:in `broadcast'
/home/dilshod/.rvm/gems/ruby-1.9.2-p290/gems/cucumber-1.1.4/lib/cucumber/ast/tree_walker.rb:92:in `visit_steps'
/home/dilshod/.rvm/gems/ruby-1.9.2-p290/gems/cucumber-1.1.4/lib/cucumber/ast/scenario.rb:55:in `block (2 levels) in accept'
/home/dilshod/.rvm/gems/ruby-1.9.2-p290/gems/cucumber-1.1.4/lib/cucumber/runtime.rb:80:in `block (2 levels) in with_hooks'
/home/dilshod/.rvm/gems/ruby-1.9.2-p290/gems/cucumber-1.1.4/lib/cucumber/runtime.rb:96:in `before_and_after'
/home/dilshod/.rvm/gems/ruby-1.9.2-p290/gems/cucumber-1.1.4/lib/cucumber/runtime.rb:79:in `block in with_hooks'
/home/dilshod/.rvm/gems/ruby-1.9.2-p290/gems/cucumber-1.1.4/lib/cucumber/runtime/support_code.rb:120:in `call'
/home/dilshod/.rvm/gems/ruby-1.9.2-p290/gems/cucumber-1.1.4/lib/cucumber/runtime/support_code.rb:120:in `block (3 levels) in around'
/home/dilshod/.rvm/gems/ruby-1.9.2-p290/gems/cucumber-1.1.4/lib/cucumber/language_support/language_methods.rb:9:in `block in around'
/home/dilshod/.rvm/gems/ruby-1.9.2-p290/gems/cucumber-1.1.4/lib/cucumber/language_support/language_methods.rb:91:in `call'
/home/dilshod/.rvm/gems/ruby-1.9.2-p290/gems/cucumber-1.1.4/lib/cucumber/language_support/language_methods.rb:91:in `execute_around'
/home/dilshod/.rvm/gems/ruby-1.9.2-p290/gems/cucumber-1.1.4/lib/cucumber/language_support/language_methods.rb:8:in `around'
/home/dilshod/.rvm/gems/ruby-1.9.2-p290/gems/cucumber-1.1.4/lib/cucumber/runtime/support_code.rb:119:in `block (2 levels) in around'
/home/dilshod/.rvm/gems/ruby-1.9.2-p290/gems/cucumber-1.1.4/lib/cucumber/runtime/support_code.rb:117:in `call'
/home/dilshod/.rvm/gems/ruby-1.9.2-p290/gems/cucumber-1.1.4/lib/cucumber/runtime/support_code.rb:117:in `around'
/home/dilshod/.rvm/gems/ruby-1.9.2-p290/gems/cucumber-1.1.4/lib/cucumber/runtime.rb:91:in `around'
/home/dilshod/.rvm/gems/ruby-1.9.2-p290/gems/cucumber-1.1.4/lib/cucumber/runtime.rb:78:in `with_hooks'
/home/dilshod/.rvm/gems/ruby-1.9.2-p290/gems/cucumber-1.1.4/lib/cucumber/ast/scenario.rb:53:in `block in accept'
/home/dilshod/.rvm/gems/ruby-1.9.2-p290/gems/cucumber-1.1.4/lib/cucumber/ast/scenario.rb:108:in `with_visitor'
/home/dilshod/.rvm/gems/ruby-1.9.2-p290/gems/cucumber-1.1.4/lib/cucumber/ast/scenario.rb:47:in `accept'
/home/dilshod/.rvm/gems/ruby-1.9.2-p290/gems/cucumber-1.1.4/lib/cucumber/ast/tree_walker.rb:51:in `block in visit_feature_element'
/home/dilshod/.rvm/gems/ruby-1.9.2-p290/gems/cucumber-1.1.4/lib/cucumber/ast/tree_walker.rb:163:in `broadcast'
/home/dilshod/.rvm/gems/ruby-1.9.2-p290/gems/cucumber-1.1.4/lib/cucumber/ast/tree_walker.rb:50:in `visit_feature_element'
/home/dilshod/.rvm/gems/ruby-1.9.2-p290/gems/cucumber-1.1.4/lib/cucumber/ast/feature.rb:43:in `block in accept'
/home/dilshod/.rvm/gems/ruby-1.9.2-p290/gems/cucumber-1.1.4/lib/cucumber/ast/feature.rb:42:in `each'
/home/dilshod/.rvm/gems/ruby-1.9.2-p290/gems/cucumber-1.1.4/lib/cucumber/ast/feature.rb:42:in `accept'
/home/dilshod/.rvm/gems/ruby-1.9.2-p290/gems/cucumber-1.1.4/lib/cucumber/ast/tree_walker.rb:20:in `block in visit_feature'
/home/dilshod/.rvm/gems/ruby-1.9.2-p290/gems/cucumber-1.1.4/lib/cucumber/ast/tree_walker.rb:163:in `broadcast'
/home/dilshod/.rvm/gems/ruby-1.9.2-p290/gems/cucumber-1.1.4/lib/cucumber/ast/tree_walker.rb:19:in `visit_feature'
/home/dilshod/.rvm/gems/ruby-1.9.2-p290/gems/cucumber-1.1.4/lib/cucumber/ast/features.rb:29:in `block in accept'
/home/dilshod/.rvm/gems/ruby-1.9.2-p290/gems/cucumber-1.1.4/lib/cucumber/ast/features.rb:17:in `each'
/home/dilshod/.rvm/gems/ruby-1.9.2-p290/gems/cucumber-1.1.4/lib/cucumber/ast/features.rb:17:in `each'
/home/dilshod/.rvm/gems/ruby-1.9.2-p290/gems/cucumber-1.1.4/lib/cucumber/ast/features.rb:28:in `accept'
/home/dilshod/.rvm/gems/ruby-1.9.2-p290/gems/cucumber-1.1.4/lib/cucumber/ast/tree_walker.rb:14:in `block in visit_features'
/home/dilshod/.rvm/gems/ruby-1.9.2-p290/gems/cucumber-1.1.4/lib/cucumber/ast/tree_walker.rb:163:in `broadcast'
/home/dilshod/.rvm/gems/ruby-1.9.2-p290/gems/cucumber-1.1.4/lib/cucumber/ast/tree_walker.rb:13:in `visit_features'
/home/dilshod/.rvm/gems/ruby-1.9.2-p290/gems/cucumber-1.1.4/lib/cucumber/runtime.rb:46:in `run!'
/home/dilshod/.rvm/gems/ruby-1.9.2-p290/gems/cucumber-1.1.4/lib/cucumber/cli/main.rb:43:in `execute!'
/home/dilshod/.rvm/gems/ruby-1.9.2-p290/gems/cucumber-1.1.4/lib/cucumber/cli/main.rb:20:in `execute'
/home/dilshod/.rvm/gems/ruby-1.9.2-p290/gems/cucumber-1.1.4/bin/cucumber:14:in `'
/home/dilshod/.rvm/gems/ruby-1.9.2-p290/bin/cucumber:19:in `load'
/home/dilshod/.rvm/gems/ruby-1.9.2-p290/bin/cucumber:19:in `

'
features/schedule/manage_fill_schedule_of_workings.feature:16:in `То в таб

My gemfile looks like this:

source 'http://rubygems.org'
#source 'file:///home/dilshod'

gem 'rails', '3.1.0'

# Bundle edge Rails instead:
# gem 'rails', :git => 'git://github.com/rails/rails.git'

gem 'mysql2'

# Gems used only for assets and not required
# in production environments by default.
group :assets do
gem 'sass-rails', " ~> 3.1.0"
gem 'coffee-rails', "~> 3.1.0"
gem 'uglifier'
end

gem 'jquery-rails'
gem 'haml-rails'

# Use unicorn as the web server
# gem 'unicorn'

# Deploy with Capistrano
# gem 'capistrano'

# To use debugger
# gem 'ruby-debug19', :require => 'ruby-debug'

group :development do
gem 'rspec-rails'
gem 'cucumber'
gem 'gherkin', "<= 2.7.1"
gem 'cucumber-rails'
gem 'webrat'
end

group :test do

gem 'capybara'
gem 'selenium-webdriver'
gem 'database_cleaner'
gem 'factory_girl_rails'
gem 'webrat'
# gem "gherkin", "= 2.4.18"
# Pretty printed test output
#gem 'turn', :require => false
gem 'turn', '< 0.8.3'
end
gem 'minitest'

How i can resolve this problem? Please help me. Google not get right result for me//