Getting up and running with Cucumber and Test::Unit
It took me a little while to figure out how to get Cucumber working on Rails 3 without its rspec dependancy. Maybe it was me being stupid but hopefully this can help others out too!
In your Gemfile (remember to use upto date versions)
gem 'cucumber-rails', '~> 0.4.0'
gem 'capybara', '~> 0.4.1.2'
gem 'database_cleaner', '~> 0.6.6'
Then run
bundle
rails g cucumber:install --testunit --capybara
Once I did that I no longer had my Cucumber throwing a wobbler that it couldn't find rspec!
Published on Monday, 21 March 2011
All posts
- How to reach your host machine from VirtualBox
- Running RSpec with optional SimpleCov
- Handy Rails string functions
- Sexy documenting with Docco & Rocco
- Playing with CoffeeScript
- Time to learn: Behaviour Driven Development
- Getting up and running with Cucumber and Test::Unit
- My HTML Toolkits
- First networking meeting
- Using php.activerecord with Zend Framework
- How to create a Zend Controller Plugin
- JavaScript CDATA