I get the following error when running cucumber, ruby, capybara with selenium webdriver
It turns out that in my config.yml (features/support/config.yml) I have an extra space:
"
test_server:
base_url: http://192.168.1.10/test/
test_server2:
base_url: http://192.168.1.4/test/
"
which should be:
"
test_server:
base_url: http://192.168.1.10/test/
test_server2:
base_url: http://192.168.1.4/test/
" (no space on "test_server2")
D:\work\cucumber>bundle exec cucumber features\regression\search.feature
(<unknown>): did not find expected key while parsing a block mapping at line 1 column 1 (Psych::SyntaxError)
C:/RailsInstaller/Ruby1.9.3/lib/ruby/1.9.1/psych.rb:206:in `parse'
C:/RailsInstaller/Ruby1.9.3/lib/ruby/1.9.1/psych.rb:206:in `parse_stream'
C:/RailsInstaller/Ruby1.9.3/lib/ruby/1.9.1/psych.rb:289:in `load_stream'
C:/RailsInstaller/Ruby1.9.3/lib/ruby/1.9.1/psych/deprecated.rb:28:in `load_documents'
D:/work/cucumber/features/support/lib/configuration.rb:11:in `load'
D:/work/cucumber/features/support/lib/configuration.rb:22:in `<top (required)>'
D:/work/cucumber/features/support/env.rb:12:in `require'
D:/work/cucumber/features/support/env.rb:12:in `<top (required)>'
D:/work/cucumber/vendor/ruby/1.9.1/gems/cucumber-1.3.1/lib/cucumber/rb_support/rb_language.rb:122:in `load'
D:/work/cucumber/vendor/ruby/1.9.1/gems/cucumber-1.3.1/lib/cucumber/rb_support/rb_language.rb:122:in `load_code_file'
D:/work/cucumber/vendor/ruby/1.9.1/gems/cucumber-1.3.1/lib/cucumber/runtime/support_code.rb:180:in `load_file'
D:/work/cucumber/vendor/ruby/1.9.1/gems/cucumber-1.3.1/lib/cucumber/runtime/support_code.rb:83:in `block in load_files!'
D:/work/cucumber/vendor/ruby/1.9.1/gems/cucumber-1.3.1/lib/cucumber/runtime/support_code.rb:82:in `each'
D:/work/cucumber/vendor/ruby/1.9.1/gems/cucumber-1.3.1/lib/cucumber/runtime/support_code.rb:82:in `load_files!'
D:/work/cucumber/vendor/ruby/1.9.1/gems/cucumber-1.3.1/lib/cucumber/runtime.rb:183:in `load_step_definitions'
D:/work/cucumber/vendor/ruby/1.9.1/gems/cucumber-1.3.1/lib/cucumber/runtime.rb:42:in `run!'
D:/work/cucumber/vendor/ruby/1.9.1/gems/cucumber-1.3.1/lib/cucumber/cli/main.rb:47:in `execute!'
D:/work/cucumber/vendor/ruby/1.9.1/gems/cucumber-1.3.1/bin/cucumber:13:in `<top (required)>'
D:/work/cucumber/vendor/ruby/1.9.1/bin/cucumber:23:in `load'
D:/work/cucumber/vendor/ruby/1.9.1/bin/cucumber:23:in `<main>'