Initially I had a few problems getting rspec and cucumber (especially gherkin) working with rails3 beta and ruby 1.9.2! Mainly these problems I ran into seemed to deal with bundler. So easy enough, to get cucumber and rspec working, add the following to your Gemfile
group :test do gem 'webrat' gem 'rspec' gem 'capybara' gem 'database_cleaner' gem 'cucumber-rails' gem 'cucumber' gem 'rspec-rails' gem 'spork' gem 'launchy' end
chances are the first time you try to run your tests (especially if you’re using rvm) you’ll have segfaults displayed. To fix this manually remove the natively compiled gets and reinstall them using the gem command. i.e.
gem uninstall gherkin nokogiri gem install gherkin -v=2.1.5 gem install nokogiri -v=184.108.40.206
Do this for each of your segfaulting gems and things should start to work!