Satya's blog - Installing Cucumber

Jan 09 2011 09:38 Installing Cucumber

Cucumber, the last time I installed it, was a pain. This time I put some more effort into it, and the steps boil down to:

sudo apt-get install libxslt-dev libxml2-dev ruby1.8-dev

sudo gem install gherkin webrat cucumber cucumber-rails database_cleaner --no-rdoc --no-ri 

Add config.gem to the config/envirnments/test.rb and config/envirnments/development.rb file (why not production, or environment.rb? because it's a *testing* framework):

config.gem "cucumber"
config.gem "webrat"

This is for Rails 2.x.

(Cucumber is a Behavior-Driven Development (BDD) testing framework for Ruby on Rails.)


Last updated: Feb 24 2011 10:09

Tag: rails