[追記 2009.01.20]script/generate featureの項を追加
moroさんの記事を読んで、Cucumber wktk!と思っていたのでtry
    http://d.hatena.ne.jp/moro/20081112/1226486135
    http://d.hatena.ne.jp/moro/20081118/1226977015
    http://gist.github.com/26024
こちらの導入手順を参考しました:
http://wiki.github.com/aslakhellesoy/cucumber/ruby-on-rails
- rspec 
- rspec-rails 
- cucumber 
- webrat
ローカルには0.1.15を入れたのですが、念のため0.1.13で依存しているというgem:aslakhellesoy-webratもinstallしました。
   1    gem sources -a http://gems.github.com
   2    sudo gem install aslakhellesoy-webrat
${RAILS_ROOT}/features/support/env.rb
   1  require "webrat"
   2  Webrat.configure do |config|
   3    config.mode = :rails
   4  end     
moroさんところのcucumberの構造辺りで紹介されているgeneratorでfeatureやstepsを生成:
   1  $ ruby script/generate feature Product
moroさんのgistを下記に保存して使用し始めたのですが、
   1  ${RAILS_ROOT}/features/step_definitions/webrat_ja_steps.rb
細かい仕様が変更されていました:
ディレクトリstep_definitionsの位置も変わっているのに加えて、visits => visit、fills_in => fill_inなどが変更されていました。ただ、前もって調べなくても、rake featuresすると仕様変更された旨のmessageが出るので安心です。
   1   visit home_path 
   2   fill_in "Email", :with => "good@example.com"
またpendingされたstepには、下記のようにsnippetsが出力されて便利だなぁと思いました:
   1  You can use these snippets to implement pending steps which have no step definition:
   2  When /^パラメータを入力する product_comment\[body\]=dummy comment!$/ do
   3  end
http://moriq.tdiary.net/20081022.html
http://d.hatena.ne.jp/hs9587/20081231/1230691812
http://barkingiguana.com/2008/11/11/getting-started-with-story-driven-development-for-rails-with-cucumber