I am running an application on Rails 2.3.2. For some reason within our
organization, we wish to remain on this version of Rails. For
we use Cucumber. So I installed Cucumber (0.8.5), Capybara (0.3.9) and
Selenium-webdriver (0.0.17). But when I run Cucumber on any feature, I
an error saying " wrong number of arguments (2 for 1)
(Check here for more: http://pastie.org/1169557). In addition, Selenium
web-driver was initiating two web browser windows concurrently. But, the
features were just “fine and good”.
Folks, it took me ages to figure out the problem. The error itself did
give a clue as to what went wrong. Neither did Cucumber inform/tip/warn
about anything. But after hours of trial and error, I discovered that
three giants, Cucumber (0.8.5), Capybara (0.3.9) and Selenium-webdriver
(0.0.17), were just incompatible with Rails 2.3.2. When I changed the
RAILS_GEM_VERSION in config/environment.rb from ‘2.3.2’ to ‘2.3.5’. The
features run awesomely cool!.
I’m glad to have solved it (and I liked the experience!!). So if anyone
finding the same problem with some Cucumber version (esp. >= 0.8.5 )
its peripherals (Yes, I said peripherals [?][?]), hip-hop-hooray!
- make sure you have the latest rails gem version (> 2.3.2)
- If you would like to stick to your previous Rails version, then you
be switching between the versions. I do this manually, I would like
a better way just automate it so that anyone ( who wishes to do so)
the “Cukes” without problems.
Software Developer | Baobab Health Trust (http://www.baobabhealth.org/)
Cell: +265 999 465 137 | +265 881 234 717
“Many people doubt open source software and probably donâ€™t realize that
there is an alternativeâ€¦ which is just as good…” – Kevin Scannell